/* ============================================================
   Auth Pages — Shared Styles
   Covers: Login, Register, VerifyEmail, EmailConfirmed,
           EmailConfirmationFailed, AccessDenied
   ============================================================ */

/* ----- Section wrapper ----- */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f3ef;
    padding: 2rem 1rem;
}

.auth-section--wide {
    padding: 2.5rem 1rem;
}

/* ----- Card ----- */
.auth-card {
    display: flex;
    width: 100%;
    max-width: 860px;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #fff;
}

.auth-card--wide {
    max-width: 1020px;
}

/* ----- Brand / decorative panel (left side) ----- */
.auth-brand-panel {
    flex: 0 0 340px;
    background: linear-gradient(145deg, #c0392b 0%, #922b21 60%, #641e16 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.auth-brand-panel--narrow {
    flex: 0 0 300px;
}

.auth-brand-panel::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
}

.auth-brand-panel::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -40px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
}

.auth-brand-logo {
    width: 260px;
    height: auto;
    filter: brightness(0) invert(1);
}

/* ----- Form panel (right side) ----- */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
}

.auth-form-panel--wide {
    padding: 2rem 2.5rem;
    align-items: flex-start;
}

.auth-form-inner {
    width: 100%;
    max-width: 380px;
}

.auth-form-inner--wide {
    max-width: 100%;
}

/* ----- Mobile logo ----- */
.auth-logo-mobile {
    height: 52px;
    width: auto;
}

/* ----- Password eye toggle button ----- */
.auth-eye-btn {
    position: absolute;
    top: 50%;
    right: .75rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: .25rem;
    line-height: 1;
    z-index: 10;
}

.auth-eye-btn:hover {
    color: #343a40;
}

/* ----- Input overrides (keep fields white, brand focus ring) ----- */
.auth-form-inner .form-control:-webkit-autofill,
.auth-form-inner .form-control:-webkit-autofill:hover,
.auth-form-inner .form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #212529 !important;
    background-color: #fff !important;
}

.auth-form-inner .form-control {
    background-color: #fff;
    border-color: #dee2e6;
}

.auth-form-inner .form-control:focus {
    background-color: #fff;
    border-color: #922b21;
    box-shadow: 0 0 0 0.2rem rgba(146, 43, 33, .15);
}

/* ----- Utility links ----- */
.auth-forgot-link {
    color: #6c757d;
}

.auth-forgot-link:hover {
    color: #922b21;
}

.auth-signup-link {
    color: #922b21;
}

.auth-signup-link:hover {
    color: #641e16;
}

/* ----- Responsive ----- */
@media (max-width: 1199.98px) {
    .auth-card--wide {
        border-radius: 1rem;
    }

    .auth-form-panel--wide {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .auth-card {
        border-radius: 1rem;
    }

    .auth-form-panel {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .auth-form-panel--wide {
        padding: 1.5rem 1rem;
    }
}
