/* =========================
   页面整体 & 背景
========================= */
/* 默认让页面所有元素不出现输入光标 */
body * {
    cursor: default !important;
}
/* 输入框和文本区域恢复正常光标 */
input[type="text"],
input[type="password"],
textarea {
    cursor: text !important;   /* 输入光标 */
}

/* 按钮和链接用手型光标（常见习惯） */
button,
input[type="submit"],
a {
    cursor: pointer !important;
}
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================
   登录卡片
========================= */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    text-align: center;
    transition: transform 0.3s ease;
}
.login-container:hover {
    transform: translateY(-5px);
}

/* 标题 */
.login-container h2 {
    margin-bottom: 30px;
    font-size: 28px;
    color: #333;
}

/* =========================
   登录表单
========================= */
/* 登录表单容器 */
.login-container form {
    display: flex;
    flex-direction: column;
    align-items: center; /* 所有子元素水平居中 */
    gap: 15px;
}


/* 每行标签 + 输入框左右排列 */
.login-container form p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* 标签样式 */
.login-container form p label {
    width: 100px;
    font-weight: 600;
    font-size: 18px;
    color: #333;
}

/* 输入框 */
.login-container form p input[type="text"],
.login-container form p input[type="password"] {
    flex: 1;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
}

/* 图片 */
/* 输入框下面的图片单独调整 */
.custom-login-form p img.captcha-img {
    display: block;         /* 保证独占一行 */
    margin-left: 14px;     /* 向右移动距离，自行调整 */
    margin-top: 2px;
    padding: 5px 0px;
    width: 110px;
    height: 45px;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.custom-login-form p.captcha-row img.captcha-img:hover {
    transform: scale(1.05);
}

/* 提示文字 */
.custom-login-form p.captcha-tip {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    text-align: left;
}


/* 登录按钮 */
.custom-login-form p input[type="submit"] {
    width: 100px;
    padding: 12px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: #667eea;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}
.custom-login-form p input[type="submit"]:hover {
    background: #5a67d8;
}

/* =========================
   “记住我”复选框
========================= */

#custom-login-form {
    display: flex;
    flex-direction: column;
    align-items: center;  /* 整个表单子元素水平居中 */
    gap: 15px;
}
/* 每行标签+输入框左右排列 */
#custom-login-form p:not(.forgetmenot) {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Remember Me 包裹容器居中 */
#custom-login-form p.forgetmenot {
    display: flex !important;
    justify-content: center !important; /* 强制居中 */
    width: 100%;
    gap: 8px;
}

/* 复选框和文字 */
#custom-login-form p.forgetmenot input#rememberme,
#custom-login-form p.forgetmenot label[for="rememberme"] {
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    font-size: 16px;
    cursor: pointer;
}



/* =========================
   社交登录按钮容器
========================= */
.social-login-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}
/* =========================
   社交登录按钮圆形样式
========================= */
.social-login-btn {
    display: inline-flex;           /* inline-flex 更适合按钮排列 */
    align-items: center;
    justify-content: center;
    width: 67px;                    /* 固定宽度 */
    height: 67px;                   /* 固定高度 → 正方形 */
    border-radius: 50%;             /* 完全圆形 */
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 2px solid transparent; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: 5px;                    /* 按钮间距 */
}
.social-login-btn i {
    font-size: 28px;                /* 图标大小 */
    transition: transform 0.3s ease;
}
.social-login-btn:hover i {
    transform: scale(1.2);
}

/* 各平台渐变背景保持不变 */
.google-login-btn { background: linear-gradient(135deg, #4285F4, #34A853, #FBBC05, #EA4335); }
/* Twitter 按钮 - 更靓丽四色渐变 */
.twitter-login-btn {
    background: linear-gradient(135deg, #1DA1F2, #00CFFF, #8A2BE2, #0D47A1);
}

/* Facebook 按钮 - 更靓丽四色渐变 */
.facebook-login-btn {
    background: linear-gradient(135deg, #1877F2, #3B99FF, #FF69B4, #0F3D8F);
}
.tiktok-login-btn { background: linear-gradient(135deg, #69C9D0, #EE1D52, #010101, #000000); }

/* 悬停效果 */
.social-login-btn:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}


/* 各平台图标颜色 */
.google-login-btn i { color: #fff; }           /* Google 白色图标 */
.twitter-login-btn i { color: #00FFFF; }       /* Twitter 青色系图标 */
.facebook-login-btn i { color: #FF69B4; }      /* Facebook 粉色系图标 */
.tiktok-login-btn i { color: #69C9D0; }       /* TikTok 青色系图标 */

/* 悬停效果保持不变 */
.social-login-btn:hover i {
    transform: scale(1.2);
}






/* =========================
   错误提示 & 链接
========================= */
.login-error {
    color: red;
    margin-bottom: 15px;
    font-size: 14px;
}

.login-container a {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    display: block;
    margin-top: 10px;
}
.login-container a:hover {
    text-decoration: underline;
}

/* =========================
   响应式
========================= */
@media (max-width: 500px) {
    .social-login-btn {
        flex: 100%;
    }
}
