/* ============================================
   登录页样式 - 现代简约
   ============================================ */

.login-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

/* 装饰圆 */
.login-screen::before {
    content: '';
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,0.2) 0%, transparent 65%);
    top: -160px;
    right: -120px;
    pointer-events: none;
}

.login-screen::after {
    content: '';
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.18) 0%, transparent 65%);
    bottom: -120px;
    left: -100px;
    pointer-events: none;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 36px 32px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--r-lg);
    box-shadow: var(--card-shadow);
    position: relative;
}

.login-logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    font-size: 40px;
    margin-bottom: 8px;
    display: inline-block;
}

.login-logo h1 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-logo p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 4px;
}

/* ============ 标签页 ============ */
.tab-bar {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    background: var(--glass);
    border-radius: var(--r-sm);
    padding: 3px;
}

.tab-btn {
    flex: 1;
    padding: 9px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary);
    transition: all var(--ease);
}

.tab-btn.active {
    background: rgba(255,255,255,0.6);
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.tab-btn:hover:not(.active) {
    background: rgba(255,255,255,0.2);
}

/* ============ 表单 ============ */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    padding-left: 2px;
}

/* ============ 验证码行 ============ */
.code-input-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.code-input-row .form-input {
    flex: 1;
    min-width: 0;
}

.code-input-row .btn-sm {
    height: 46px;
    display: flex;
    align-items: center;
    margin-top: 0;
}

/* ============ 登录模式切换 ============ */
.login-mode-switch {
    font-size: 12px;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity var(--ease);
}

.login-mode-switch:hover {
    opacity: 0.8;
}

.login-mode-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ============ 验证码界面 ============ */
.verify-info {
    text-align: center;
    padding: 8px 0;
}

.verify-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.verify-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 2px;
}

.verify-email {
    font-weight: 700;
    color: var(--primary-dark) !important;
    font-size: 15px !important;
}

.verify-code-input {
    text-align: center;
    font-size: 26px !important;
    letter-spacing: 10px;
    font-weight: 800;
    padding: 14px !important;
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
    .login-screen { padding: 16px; }
    .login-card { padding: 28px 20px; }
    .login-logo h1 { font-size: 22px; }
    .logo-icon { font-size: 36px; }
    .tab-bar { margin-bottom: 20px; }
    .tab-btn { padding: 8px; font-size: 13px; }
    .verify-code-input { font-size: 22px !important; letter-spacing: 8px !important; }
}

@media (max-width: 480px) {
    .login-screen { padding: 12px; }
    .login-card { padding: 24px 16px; }
    .login-logo { margin-bottom: 22px; }
    .login-logo h1 { font-size: 20px; }
    .logo-icon { font-size: 32px; }
    .login-logo p { font-size: 13px; }
    .tab-bar { margin-bottom: 16px; }
    .tab-btn { padding: 7px; font-size: 12px; }
    .auth-form { gap: 12px; }
    .form-group label { font-size: 12px; }
    .code-input-row { gap: 6px; }
    .code-input-row .btn-sm { height: 42px; font-size: 12px; padding: 8px 12px; }
    .verify-code-input { font-size: 20px !important; letter-spacing: 6px !important; padding: 12px !important; }
    .verify-info p { font-size: 13px; }
    .verify-email { font-size: 14px !important; }
}
