/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(145deg, #0B1120 0%, #19233C 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 24px 0;
}
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}
 body::after {
    content: '';
    position: fixed;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(56, 139, 253, 0.15) 0%, rgba(56, 139, 253, 0) 70%);
    top: -30%;
    right: -20%;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
/* 页面容器 */
.login-page {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 16px 20px;
    position: relative;
    z-index: 2;
}

/* 顶部 Logo 区 */
.login-header {
    text-align: center;
    margin-bottom: 24px;
    backdrop-filter: blur(2px);
    position: relative;
}

.login-logo {
    height: 75px;
    width: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)) drop-shadow(0 0 4px rgba(255,215,0,0.3));
}
.login-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5)) drop-shadow(0 0 8px rgba(255,200,0,0.5));
}
.login-header h1 {
    font-size: 26px;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 2px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #FFF 30%, #E0E7FF 80%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: none;
}

/* 登录卡片 */
.login-card {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(0px);
    border-radius: 36px;
    padding: 38px 28px 32px;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0,0,0,0.05);
    transition: transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.login-card:hover {
    transform: translateY(-2px);
}
.login-section {
    margin-bottom: 18px;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    color: #0F172B;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: -0.2px;
    position: relative;
}
.login-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #EA0000, #FF6B6B);
    border-radius: 6px;
    margin: 12px auto 0;
}
/* 微信登录 */
.login-subtitle {
    font-size: 14px;
    color: #475569;
    text-align: center;
    margin-bottom: 28px;
    background: #F8FAFE;
    display: inline-block;
    width: auto;
    margin-left: auto;
    margin-right: auto;
    padding: 6px 14px;
    border-radius: 60px;
}

.wx-bind-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: #07C160;
    color: white;
    font-size: 17px;
    font-weight: 600;
    border-radius: 56px;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 8px 18px rgba(7, 193, 96, 0.25);
    border: none;
}

.wx-bind-btn:hover {
    background: #05ab52;
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.wx-icon {
    height: 24px;
    filter: brightness(0) invert(1);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #E2E8F0;
    border-radius: 20px;
    font-size: 15px;
    color: #0F172A;
    background-color: #FFFFFF;
    outline: none;
    transition: all 0.2s;
    font-weight: 500;
}

.form-group input:focus {
    border-color: #EA0000;
    box-shadow: 0 0 0 3px rgba(234, 0, 0, 0.12);
}

/* 验证码行 */
.form-group-captcha .captcha-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.form-group-captcha .captcha-row input {
    flex: 1;
    border-radius: 20px;
}

.captcha-img {
    height: 48px;
    border-radius: 16px;
    cursor: pointer;
    border: 1.5px solid #E2E8F0;
    flex-shrink: 0;
    transition: 0.1s linear;
    background: #F1F5F9;
}
.captcha-img:active {
    transform: scale(0.96);
}
/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(105deg, #DC2626 0%, #B91C1C 100%);
    color: white;
    border: none;
    border-radius: 44px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
    box-shadow: 0 10px 20px -5px rgba(220, 38, 38, 0.3);
}

.login-btn:hover {
    background: linear-gradient(105deg, #B91C1C 0%, #991B1B 100%);
    transform: scale(0.98);
    box-shadow: 0 6px 14px rgba(220, 38, 38, 0.3);
}

.login-btn:active {
    transform: scale(0.96);
}

/* 辅助链接 */
.login-links {
    text-align: center;
    padding-top: 24px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    border-top: 1px solid #EDF2F7;
}

.login-links a {
    font-size: 13.5px;
    color: #DC2626;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 40px;
    transition: background 0.2s;
}

.login-links a:hover {
    background: #FEF2F2;
    text-decoration: underline;
    color: #B91C1C;
}

.link-divider {
    color: #CBD5E1;
    font-weight: 300;
}

/* 页脚 */
.login-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    backdrop-filter: blur(4px);
}

.login-footer a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* ====== 找回手机号弹窗 ====== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 17, 32, 0.75);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: none;   /* 默认隐藏，保证页面打开不显示弹窗 */
    align-items: flex-start;
    justify-content: center;
    padding-top: 18vh;
    transition: all 0.2s ease;
}
.modal-overlay.active {
    display: flex;
}
.modal-box {
    background: #FFFFFF;
    border-radius: 36px;
    width: 400px;
    max-width: 88vw;
    box-shadow: 0 30px 45px -20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: modalAppear 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: linear-gradient(115deg, #0F172B 0%, #1E2A4A 100%);
    color: white;
    font-size: 17px;
    font-weight: 600;
    cursor: move;
}

.modal-close {
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0 6px;
    opacity: 0.75;
    transition: opacity 0.15s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 28px 24px 32px;
}

.modal-body .form-group {
    margin-bottom: 20px;
}
.modal-body label {
    font-weight: 600;
    color: #1E293B;
}
.modal-submit-btn {
    width: 100%;
    padding: 13px;
    background: #DC2626;
    color: white;
    border: none;
    border-radius: 44px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 12px;
    box-shadow: 0 5px 12px rgba(220, 38, 38, 0.2);
}

.modal-submit-btn:hover {
     background: #B91C1C;
}

 @media (max-width: 480px) {
    .login-page {
        padding: 10px 16px;
    }
    .login-card {
        padding: 28px 20px 28px;
        border-radius: 28px;
    }
    .login-header h1 {
        font-size: 22px;
    }
    .login-logo {
        height: 56px;
    }
    .login-title {
        font-size: 20px;
    }
    .modal-box {
        width: 92vw;
    }
    .wx-bind-btn {
        padding: 12px;
        font-size: 15px;
    }
}
/* 针对输入框自动填充保持美观 */
input:-webkit-autofill,
input:-webkit-autofill:focus {
    transition: background-color 600000s 0s, color 600000s 0s;
    box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #0F172A;
}

/* 按钮禁用状态不破坏体验 */
.login-btn:disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

/* 针对微信浏览器/PC 优雅滚动 */
::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: #1E293B;
}
::-webkit-scrollbar-thumb {
    background: #DC2626;
    border-radius: 10px;
}