.auth-page {
    min-height: 100vh;
    margin: 0;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background: var(--bg-main);
    font-family: 'Noto Sans SC', system-ui, -apple-system, sans-serif;
}

.auth-wrap {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.auth-card {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(15, 118, 110, 0.12);
    border: 1px solid rgba(15, 118, 110, 0.1);
    background: var(--card-bg);
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.auth-card:hover {
    box-shadow: 0 16px 48px rgba(15, 118, 110, 0.15);
}

.auth-card .card-body {
    padding: 2.5rem 2.25rem;
}

.auth-card .auth-title {
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-card .form-label {
    font-weight: 500;
    color: #334155;
}

.auth-card .form-control {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 0.65rem 1rem;
    background: #f8fffe;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
    background: #fff;
}

.auth-card .form-control::placeholder {
    color: #94a3b8;
}

.auth-btn {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border: none;
    border-radius: 12px;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
    color: #fff;
    transition: opacity 0.2s, transform 0.15s;
}

.auth-btn:hover {
    opacity: 0.92;
    color: #fff;
    transform: translateY(-1px);
}

.auth-card hr {
    border-color: #e2e8f0;
    margin: 1.25rem 0;
}

.auth-card a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.auth-card a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.auth-page .alert {
    border-radius: 12px;
}
.auth-alert-container {
    z-index: 9999;
}

body.theme-dark-soft.auth-page .auth-card,
body.theme-dark-contrast.auth-page .auth-card,
body.theme-dark.auth-page .auth-card {
    background: #f8fafc !important;
    border-color: rgba(15, 23, 42, 0.12);
}
