/* ============ 登录页面 ============ */
.login-page {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2C5AF4 0%, #5B8DEF 50%, #7BA8F5 100%);
    position: relative;
    overflow: hidden;
}

/* 背景装饰圆 */
.login-page::before,
.login-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}
.login-page::before {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}
.login-page::after {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
}

/* ============ 登录卡片 ============ */
.login-card {
    background: #fff;
    border-radius: 20px;
    padding: 40px 36px 32px;
    width: 400px;
    max-width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    animation: cardFadeIn 0.5s ease;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============ Logo 区域 ============ */
.login-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.login-logo-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2C5AF4, #5B8DEF);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(44, 90, 244, 0.3);
}
.login-logo-icon i {
    font-size: 36px;
    color: #fff;
}
.login-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #262626;
}
.login-subtitle {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-bottom: 28px;
}

/* ============ 表单 ============ */
.form-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafc;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    padding: 0 14px;
    height: 48px;
    margin-bottom: 16px;
    transition: all 0.2s;
}
.form-group:focus-within {
    border-color: #2C5AF4;
    box-shadow: 0 0 0 3px rgba(44, 90, 244, 0.1);
    background: #fff;
}
.form-group > i {
    font-size: 20px;
    color: #999;
    flex-shrink: 0;
}
.form-group:focus-within > i {
    color: #2C5AF4;
}
.form-group input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    color: #333;
    height: 100%;
}
.form-group input::placeholder {
    color: #bbb;
}

/* 验证码输入组 */
.code-group {
    position: relative;
}
.code-group input {
    flex: 1;
}
.send-code-btn {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #2C5AF4;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 4px;
    white-space: nowrap;
    transition: color 0.2s;
}
.send-code-btn:hover {
    color: #1d4ad8;
}
.send-code-btn:disabled {
    color: #bbb;
    cursor: not-allowed;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #2C5AF4, #5B8DEF);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(44, 90, 244, 0.3);
}
.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(44, 90, 244, 0.4);
}
.login-btn:active {
    transform: translateY(0);
}
.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 提示信息 */
.login-tips {
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    background: #EDF5FE;
    border-radius: 8px;
}
.login-tips p {
    font-size: 13px;
    color: #2C5AF4;
}

/* 错误提示 */
.login-error {
    color: #ef4444;
    font-size: 13px;
    text-align: center;
    margin-bottom: 12px;
    min-height: 18px;
}

/* ============ 底部版权 ============ */
.login-footer {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

/* ============ 响应式 ============ */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px 24px;
    }
    .login-logo-icon {
        width: 56px;
        height: 56px;
    }
    .login-logo-icon i {
        font-size: 30px;
    }
    .login-logo h1 {
        font-size: 20px;
    }
}
