/* ===== 认证页面样式 ===== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.auth-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 40px;
    width: 90vw;
    max-width: 420px;
    min-width: 280px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    animation: authSlideUp .6s cubic-bezier(.34,1.56,.64,1) forwards;
    opacity: 0;
}

@keyframes authSlideUp {
    0% { opacity: 0; transform: translateY(30px) scale(.96); }
    60% { opacity: 1; transform: translateY(-6px) scale(1.01); }
    100% { opacity: 1; transform: none; }
}

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

.auth-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1d2129;
    margin-bottom: 6px;
}

.auth-logo p {
    font-size: 14px;
    color: #86909c;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-input-group label {
    font-size: 13px;
    font-weight: 500;
    color: #4e5969;
}

.auth-input {
    width: 100%;
    height: 44px;
    border: 1px solid #e5e6eb;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    transition: all .25s ease;
    background: #f7f8fa;
    color: #1d2129;
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102,126,234,.15);
}

.auth-input::placeholder {
    color: #c9cdd4;
}

.auth-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s cubic-bezier(.34,1.56,.64,1);
    margin-top: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(102,126,234,.35);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(102,126,234,.45);
}

.auth-btn:active {
    transform: translateY(0) scale(.98);
}

.auth-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #86909c;
}

.auth-switch a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* 错误/成功提示 */
.auth-error, .auth-success {
    text-align: center;
    font-size: 13px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all .3s ease;
    border-radius: 8px;
}

.auth-error.show {
    color: #e53e3e;
    background: #fff5f5;
    padding: 10px;
    max-height: 60px;
    margin-top: 4px;
}

.auth-success.show {
    color: #38a169;
    background: #f0fff4;
    padding: 10px;
    max-height: 60px;
    margin-top: 4px;
}

/* 响应式 */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 20px;
        border-radius: 16px;
        width: 94vw;
        min-width: unset;
    }
    .auth-logo h1 {
        font-size: 22px;
    }
    .auth-logo p {
        font-size: 13px;
    }
    .auth-form {
        gap: 14px;
    }
    .auth-btn {
        height: 44px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .auth-card {
        padding: 24px 16px;
    }
    .auth-input {
        height: 40px;
        font-size: 13px;
    }
    .auth-btn {
        height: 42px;
        font-size: 14px;
    }
}
