/* assets/css/auth.css - 登录/注册页面共享样式 */

.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    animation: fadeUp 0.5s ease both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.auth-card-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}
.auth-card-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* 表单 */
.form-field { margin-bottom: 1.25rem; }
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}
.form-input:focus {
    border-color: var(--primary);
    background: rgba(99,102,241,0.08);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-input::placeholder { color: rgba(255,255,255,0.25); }

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}
.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    cursor: pointer;
}
.form-checkbox input[type="checkbox"] { accent-color: var(--primary); }
.form-checkbox span { user-select: none; }
.form-checkbox a { color: #818cf8; text-decoration: none; }
.form-checkbox a:hover { text-decoration: underline; }

.btn-submit {
    width: 100%;
    padding: 0.85rem;
    background: linear-gradient(135deg, var(--primary), #818cf8);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
    margin-top: 0.5rem;
    box-shadow: 0 4px 20px rgba(99,102,241,0.35);
}
.btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(99,102,241,0.45);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.auth-footer a {
    color: #818cf8;
    text-decoration: none;
    font-weight: 600;
}
.auth-footer a:hover { text-decoration: underline; }

/* 密码强度 */
.password-strength {
    display: none;
    margin-top: 0.5rem;
}
.strength-bar {
    height: 4px;
    border-radius: 2px;
    background: #333;
    overflow: hidden;
    margin-bottom: 0.3rem;
}
.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
}
.strength-text { font-size: 0.78rem; }
.strength-text.weak   { color: #ef4444; }
.strength-text.fair   { color: #f59e0b; }
.strength-text.good   { color: #3b82f6; }
.strength-text.strong { color: #10b981; }

/* 验证卡片 */
.verify-card {
    text-align: center;
}
.verify-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(99,102,241,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}
.verify-card h2 { margin-bottom: 10px; }
.verify-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.btn-resend {
    display: inline-block;
    padding: 0.7rem 2rem;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    cursor: pointer;
}
.btn-resend:hover { background: rgba(255,255,255,0.12); color: white; }

@media (max-width: 480px) {
    .auth-card { padding: 1.75rem 1.5rem; }
    .topnav { padding: 0.8rem 1rem; }
}
