/* =========================================================
   AUTHENTICATION PAGE
   ========================================================= */

.auth-page {
    overflow-x: hidden;
}

.auth-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(420px, 0.95fr) minmax(520px, 1.05fr);
}

/* =========================================================
   BRAND PANEL
   ========================================================= */

.auth-brand-panel {
    position: relative;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 3rem;
    color: white;
    background-color: var(--brand-primary-dark);
}

/* .auth-brand-panel::before,
.auth-brand-panel::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.auth-brand-panel::before {
    width: 420px;
    height: 420px;
    right: -180px;
    bottom: 90px;
}

.auth-brand-panel::after {
    width: 260px;
    height: 260px;
    right: -85px;
    bottom: 170px;
} */

.auth-brand-content,
.auth-brand-footer {
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: #ffffff;
    text-decoration: none;
}

.auth-brand:hover {
    color: #ffffff;
}

.auth-brand-mark {
    display: inline-grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    font-size: 1.45rem;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
}

.auth-brand-name {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.auth-brand-message {
    max-width: 600px;
    margin-top: 5.5rem;
}

.auth-eyebrow,
.auth-form-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.auth-brand-message h1 {
    max-width: 570px;
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.auth-brand-message > p {
    max-width: 560px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.03rem;
    line-height: 1.75;
}

.auth-feature-list {
    display: grid;
    max-width: 600px;
    margin-top: 3.25rem;
    gap: 1.35rem;
}

.auth-feature {
    display: grid;
    align-items: start;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 1rem;
}

.auth-feature-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.09);
}

.auth-feature h2 {
    margin: 0 0 0.3rem;
    font-size: 0.98rem;
    font-weight: 650;
}

.auth-feature p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    line-height: 1.55;
}

.auth-brand-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 3rem;
    gap: 0.65rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
}

/* =========================================================
   FORM PANEL
   ========================================================= */

.auth-form-panel {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    background-color: var(--surface-secondary);
    

}

.auth-form-wrapper {
    width: 100%;
    max-width: 460px;
    padding: 2.25rem;
    border: 1px solid var(--border-color-light);
    border-radius: 10px;
    background-color: var(--surface-primary);
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.1),
        0 4px 12px rgba(15, 23, 42, 0.05);
}

.auth-mobile-brand {
    display: none;
    align-items: center;
    margin-bottom: 2.5rem;
    gap: 0.75rem;
    color: var(--brand-secondary);
}

.auth-mobile-brand .auth-brand-mark {
    color: #ffffff;
    border-color: var(--brand-primary);
    background-color: var(--brand-primary);
}

.auth-form-header {
    margin-bottom: 2rem;
}

.auth-form-kicker {
    margin-bottom: 0.75rem;
    color: var(--brand-primary);
}

.auth-form-header h2 {
    margin-bottom: 0.65rem;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.auth-form-header p {
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.65;
}

.auth-form .form-label {
    margin-bottom: 0.55rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.auth-input-group {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-input {
    min-height: 52px;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    border-color: var(--border-color);
    border-radius: var(--radius-medium);
    background-color: var(--surface-primary);
}

.auth-input::placeholder {
    color: #9aa6ae;
}

.auth-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.22rem rgba(8, 127, 91, 0.13);
}

.auth-password-input {
    padding-right: 3.3rem;
}

.auth-password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 0.55rem;
    display: inline-grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 8px;
    color: var(--text-secondary);
    background-color: transparent;
    transform: translateY(-50%);
}

.auth-password-toggle:hover {
    color: var(--brand-primary);
    background-color: var(--brand-primary-light);
}

.auth-password-toggle:focus-visible {
    outline: 3px solid rgba(8, 127, 91, 0.2);
}

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

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

.auth-forgot-link {
    font-size: 0.86rem;
}

.auth-form .form-check-label {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.auth-form .form-check-input:checked {
    border-color: var(--brand-primary);
    background-color: var(--brand-primary);
}

.auth-form .form-check-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(8, 127, 91, 0.15);
}

.auth-submit-button,
.auth-register-button {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: var(--radius-medium);
    font-weight: 650;
}

.auth-divider {
    display: grid;
    align-items: center;
    margin: 2rem 0 1.25rem;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
}

.auth-divider span {
    height: 1px;
    background-color: var(--border-color-light);
}

.auth-divider small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.auth-register-message {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
}

.auth-form-footer {
    padding-top: 2rem;
}

.auth-form-footer p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.6;
    text-align: center;
}

/* =========================================================
   VALIDATION
   ========================================================= */

.auth-form.was-validated .auth-input:invalid,
.auth-input.is-invalid {
    border-color: var(--status-danger);
}

.auth-form.was-validated .auth-input:invalid:focus,
.auth-input.is-invalid:focus {
    box-shadow: 0 0 0 0.22rem rgba(220, 53, 69, 0.12);
}

.auth-form .invalid-feedback {
    margin-top: 0.45rem;
    font-size: 0.8rem;
}

#loginAlert {
    border: 1px solid rgba(220, 53, 69, 0.22);
    border-radius: var(--radius-medium);
    font-size: 0.9rem;
}

/* =========================================================
   RESPONSIVENESS
   ========================================================= */

@media (max-width: 1050px) {
    .auth-layout {
        grid-template-columns: minmax(370px, 0.85fr) minmax(470px, 1.15fr);
    }

    .auth-brand-panel {
        padding: 2.5rem;
    }

    .auth-feature-list {
        margin-top: 2.5rem;
    }
}

@media (max-width: 850px) {
    .auth-layout {
        display: block;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        min-height: 100vh;
        padding: 2.5rem 1.25rem;
    }

    .auth-mobile-brand {
        display: flex;
    }
}

@media (max-width: 480px) {
    .auth-form-panel {
        align-items: flex-start;
        padding-top: 1.5rem;
    }

    .auth-mobile-brand {
        margin-bottom: 2rem;
    }

    .auth-form-header h2 {
        font-size: 1.75rem;
    }

    .auth-form-footer {
        padding-bottom: 1rem;
    }
}
/* =========================================================
   REGISTRATION PAGE
   ========================================================= */

.auth-form-panel-wide {
    align-items: flex-start;
    overflow-y: auto;
}

.auth-form-wrapper-wide {
    max-width: 720px;
    padding: 2.25rem;
}

.registration-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color-light);
}

.registration-section:first-of-type {
    padding-top: 0.5rem;
}

.registration-section-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.35rem;
    gap: 0.85rem;
}

.registration-section-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 10px;
    color: var(--brand-primary);
    background-color: var(--brand-primary-light);
}

.registration-section-header h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
    font-weight: 700;
}

.registration-section-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.5;
}

.auth-input-no-icon {
    padding-left: 1rem;
}

.registration-declarations {
    padding-top: 1.5rem;
}

.registration-declarations .form-check {
    padding: 1rem 1rem 1rem 2.75rem;
    border: 1px solid var(--border-color-light);
    border-radius: var(--radius-medium);
    background-color: var(--surface-secondary);
}

.registration-declarations .form-check-input {
    margin-left: -1.75rem;
}

.registration-declarations .form-check-label {
    line-height: 1.6;
}

.password-strength-track {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background-color: var(--border-color-light);
}

.password-strength-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background-color: var(--status-danger);
    transition:
        width var(--transition-normal),
        background-color var(--transition-normal);
}

.password-strength small {
    display: block;
    margin-top: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.45;
}

.password-strength-bar.is-weak {
    width: 25%;
    background-color: var(--status-danger);
}

.password-strength-bar.is-fair {
    width: 50%;
    background-color: var(--status-warning);
}

.password-strength-bar.is-good {
    width: 75%;
    background-color: var(--status-info);
}

.password-strength-bar.is-strong {
    width: 100%;
    background-color: var(--status-success);
}

@media (max-width: 850px) {
    .auth-form-wrapper-wide {
        max-width: 680px;
    }
}

@media (max-width: 576px) {
    .registration-section {
        padding: 1.25rem 0;
    }

    .registration-declarations .form-check {
        padding-right: 0.85rem;
    }
}