/* Auth pages — login, register, forgot password */
.auth-page {
    min-height: calc(100vh - var(--site-header-height) - 2rem);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 3rem;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(52, 152, 219, 0.18), transparent),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(33, 37, 41, 0.06), transparent),
        linear-gradient(160deg, #eef4f9 0%, #f5f5f5 45%, #eef2f6 100%);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: 20px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 20px 50px rgba(33, 37, 41, 0.1);
    overflow: hidden;
    border: 1px solid rgba(52, 152, 219, 0.12);
}

.auth-brand {
    text-align: center;
    padding: 2.25rem 2rem 1.5rem;
    background: linear-gradient(135deg, var(--dark-color) 0%, #2c3e50 100%);
    color: var(--white);
    position: relative;
}

.auth-brand::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.auth-logo-wrap {
    width: 88px;
    height: 88px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: var(--white);
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.auth-brand h1 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
}

.auth-brand p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.78;
}

.auth-body {
    padding: 1.75rem 2rem 2rem;
}

.auth-field {
    margin-bottom: 1.25rem;
}

.auth-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.45rem;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 0.95rem;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
    opacity: 0.85;
}

.auth-input-wrap .form-control {
    padding-inline-start: 2.65rem;
    padding-inline-end: 2.75rem;
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid #dee2e6;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fafbfc;
}

.auth-input-wrap .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    background: var(--white);
}

.auth-toggle-pw {
    position: absolute;
    top: 50%;
    inset-inline-end: 0.35rem;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s, background 0.2s;
}

.auth-toggle-pw:hover {
    color: var(--primary-color);
    background: rgba(52, 152, 219, 0.08);
}

.auth-submit {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 14px rgba(52, 152, 219, 0.35);
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.auth-submit:hover {
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.45);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    color: #adb5bd;
    font-size: 0.82rem;
    text-transform: lowercase;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e9ecef;
}

.auth-google {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid #dee2e6;
    background: var(--white);
    color: #3c4043;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.auth-google:hover {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #202124;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-google .google-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.auth-links {
    text-align: center;
    margin-top: 1.25rem;
}

.auth-links a {
    font-size: 0.875rem;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-links a:hover {
    color: var(--primary-color);
}

.auth-footer {
    text-align: center;
    padding: 1rem 2rem 1.35rem;
    background: #f8f9fa;
    border-top: 1px solid #eef0f2;
    font-size: 0.9rem;
    color: #6c757d;
}

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

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

/* Navbar login icon — distinct pill style for guests */
.nav-login-btn {
    width: auto !important;
    min-width: 2.25rem;
    padding: 0 0.65rem !important;
    border-radius: 999px !important;
    gap: 0.35rem;
    background: rgba(52, 152, 219, 0.18) !important;
    color: #7ec8f0 !important;
}

.nav-login-btn:hover,
.nav-login-btn:focus {
    background: rgba(52, 152, 219, 0.32) !important;
    color: #fff !important;
}

.nav-login-btn .nav-login-label {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1;
}

@media (max-width: 480px) {
    .auth-body {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .auth-brand {
        padding: 1.75rem 1.25rem 1.25rem;
    }

    .auth-logo-wrap {
        width: 76px;
        height: 76px;
    }

    .nav-login-btn .nav-login-label {
        display: none;
    }
}
