/* auth.css — login / register / forgot styling.
   Loads AFTER css/index.css: reuses its tropical --jjmm-* tokens + navbar styles,
   and overrides the landing-page grid body so these pages lay out normally. */

body {
    display: block;
    min-height: 100vh;
    background: var(--jjmm-sky-wash);
}

.header-site {
    position: static;
    font-size: 1rem;
    font-weight: 400;
    color: inherit;
}

/* ── Split auth layout ───────────────────────────────────────────────── */
.auth-shell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 16px 60px;
    min-height: calc(100vh - 130px);
}

.auth-card {
    display: flex;
    width: min(100%, 900px);
    background: var(--jjmm-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--jjmm-shadow);
    border: 1px solid var(--jjmm-line);
}

.auth-brand {
    flex: 0 0 42%;
    position: relative;
    isolation: isolate;
    color: #ffffff;
    padding: 40px 34px;
    display: flex;
    flex-direction: column;
    background: var(--jjmm-aqua-deep);
    overflow: hidden;
}

.auth-brand-media {
    position: absolute;
    inset: 0;
    z-index: -2;
    display: block;
}

.auth-brand-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(160deg, rgba(2, 62, 87, 0.78) 0%, rgba(0, 119, 182, 0.60) 100%);
}

.auth-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--jjmm-font);
    font-weight: 800;
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
}

.auth-brand-logo .mark {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-brand-bottom {
    margin-top: auto;
}

.auth-brand-bottom h2 {
    font-family: var(--jjmm-font);
    font-weight: 800;
    font-size: 27px;
    margin: 0 0 10px;
    color: #ffffff;
}

.auth-brand-bottom p {
    color: #e6f8ff;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px;
}

.auth-perk {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #eafaff;
    margin-bottom: 11px;
}

.auth-perk svg {
    flex: 0 0 auto;
}

/* ── Form panel ──────────────────────────────────────────────────────── */
.auth-form {
    flex: 1;
    padding: 42px 40px;
    min-width: 0;
}

.auth-form h1 {
    font-family: var(--jjmm-font);
    font-weight: 800;
    font-size: 24px;
    color: var(--jjmm-teal-ink);
    margin: 0 0 4px;
}

.auth-form .auth-sub {
    font-size: 13.5px;
    color: var(--jjmm-muted);
    margin: 0 0 24px;
}

.auth-form .form-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--jjmm-teal-ink);
    margin-bottom: 6px;
}

.auth-form .form-control {
    border: 1px solid var(--jjmm-line);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 14px;
    background: var(--jjmm-sky-wash);
    color: var(--jjmm-teal-ink);
}

.auth-form .form-control:focus {
    border-color: var(--jjmm-aqua);
    box-shadow: 0 0 0 3px rgba(0, 150, 199, 0.18);
    background: #ffffff;
}

.pw-wrap {
    position: relative;
}

.pw-wrap .form-control {
    padding-right: 42px;
}

.pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--jjmm-muted);
    cursor: pointer;
    padding: 4px;
    line-height: 0;
}

.pw-toggle:hover {
    color: var(--jjmm-aqua);
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 14px 0 20px;
    font-size: 12.5px;
}

.auth-row .form-check-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--jjmm-muted);
    margin: 0;
}

.auth-link {
    color: var(--jjmm-aqua);
    font-weight: 700;
    text-decoration: none;
}

.auth-link:hover {
    color: var(--jjmm-aqua-deep);
    text-decoration: underline;
}

.btn-auth {
    width: 100%;
    padding: 13px;
    background: var(--jjmm-coral);
    color: #ffffff;
    border: 2px solid var(--jjmm-coral);
    border-radius: var(--jjmm-pill);
    font-family: var(--jjmm-font);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: transform var(--jjmm-transition), background var(--jjmm-transition), border-color var(--jjmm-transition);
}

.btn-auth:hover,
.btn-auth:focus {
    background: var(--jjmm-coral-deep);
    border-color: var(--jjmm-coral-deep);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}

.auth-foot {
    text-align: center;
    margin: 20px 0 0;
    font-size: 13px;
    color: var(--jjmm-muted);
}

.host-note {
    background: var(--jjmm-sky-wash);
    border: 1px solid var(--jjmm-line);
    border-left: 4px solid var(--jjmm-aqua);
    border-radius: 0 10px 10px 0;
    padding: 0.7rem 0.9rem;
    font-size: 0.82rem;
    color: var(--jjmm-ink);
}

/* ── Forgot-password modal accents ───────────────────────────────────── */
.modal-content {
    border-radius: 18px;
    border: 1px solid var(--jjmm-line);
}

.modal-title {
    font-family: var(--jjmm-font);
    font-weight: 800;
    color: var(--jjmm-teal-ink);
}

@media (max-width: 768px) {
    .auth-card {
        flex-direction: column;
        width: min(100%, 460px);
    }

    .auth-brand {
        flex-basis: auto;
        padding: 24px 26px 20px;
    }

    .auth-brand-bottom {
        margin-top: 16px;
    }

    .auth-brand-bottom h2 {
        font-size: 21px;
        margin-bottom: 6px;
    }

    .auth-brand-bottom p,
    .auth-perk {
        display: none;
    }

    .auth-form {
        padding: 30px 26px;
    }
}
