/* ===== Evo Dingee – login / register / other signed-out pages ===== */

.auth-shell {
    --auth-navy: #12355B;
    --auth-lagoon: #0B7A75;
    --auth-lagoon-dark: #09625e;
    --auth-sea: #F1F6F6;
    --auth-line: #D3DFE2;
    --auth-muted: #526577;
    --auth-error: #B3372E;

    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--auth-sea);
    color: var(--auth-navy);
    font-family: 'Figtree', 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Hero (top band on phones, left panel on desktop) ---------- */
.auth-hero {
    position: relative;
    overflow: hidden;
    background: var(--auth-navy);
    color: #fff;
    padding: calc(20px + env(safe-area-inset-top, 0px)) 24px 64px;
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.auth-brand:hover { color: #fff; }
.auth-boat { width: 30px; height: 30px; color: #7FD3CC; }

.auth-hero-copy {
    position: relative;
    z-index: 1;
    margin-top: 22px;
}

.auth-hero-title {
    margin: 0;
    font-size: 1.65rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-hero-text {
    display: none;
    margin: 14px 0 0;
    max-width: 34ch;
    font-size: 1.05rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .78);
}

.auth-waves {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 56px;
}

/* ---------- Form side ---------- */
.auth-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
}

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    margin-top: -36px;          /* card overlaps the waves on phones */
    padding: 28px 22px 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(18, 53, 91, .10), 0 1px 3px rgba(18, 53, 91, .08);
}

.auth-foot {
    margin: 18px 0 0;
    font-size: .82rem;
    color: var(--auth-muted);
}

/* ---------- Text ---------- */
.auth-title {
    margin: 0 0 4px;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--auth-navy);
}

.auth-lead {
    margin: 0 0 22px;
    color: var(--auth-muted);
}

/* ---------- Form ---------- */
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }

.auth-field label,
.auth-label-row label {
    font-weight: 700;
    font-size: .9rem;
    margin: 0;
}

.auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.auth-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1.5px solid var(--auth-line);
    border-radius: 12px;
    background: #fff;
    color: var(--auth-navy);
    font: inherit;
    font-size: 1rem;              /* 16px stops iOS from zooming in */
    transition: border-color .15s, box-shadow .15s;
}

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

.auth-input:focus {
    outline: none;
    border-color: var(--auth-lagoon);
    box-shadow: 0 0 0 4px rgba(11, 122, 117, .15);
}

.auth-input.invalid { border-color: var(--auth-error); }
.auth-input.invalid:focus { box-shadow: 0 0 0 4px rgba(179, 55, 46, .12); }

.auth-password { position: relative; }
.auth-password .auth-input { padding-right: 72px; }

.auth-eye {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--auth-lagoon);
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
}

.auth-eye:hover { background: #E9F5F4; }
.auth-eye:focus-visible { outline: 2px solid var(--auth-lagoon); }

.auth-hint { font-size: .8rem; color: var(--auth-muted); }

.auth-shell .validation-message {
    font-size: .85rem;
    font-weight: 600;
    color: var(--auth-error);
}

.auth-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    cursor: pointer;
    user-select: none;
}

.auth-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--auth-lagoon);
    cursor: pointer;
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: 12px;
    background: var(--auth-lagoon);
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s;
}

.auth-submit:hover { background: var(--auth-lagoon-dark); }
.auth-submit:focus-visible { outline: 3px solid #7FD3CC; outline-offset: 2px; }

/* Remove the template's green/red outlines (app.css) — we use border colors instead */
.auth-shell .valid.modified:not([type=checkbox]),
.auth-shell .invalid { outline: none; }

/* ---------- Links & messages ---------- */
.auth-shell a { color: var(--auth-lagoon); font-weight: 600; text-decoration: none; }
.auth-shell a:hover { text-decoration: underline; }
.auth-link-small { font-size: .85rem; }

.auth-switch {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #E6EDEF;
    text-align: center;
    color: var(--auth-muted);
}

.auth-alert {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #FCECEA;
    color: #7E2620;
    font-size: .92rem;
    font-weight: 500;
}

.auth-alert a { color: #7E2620; text-decoration: underline; }

/* ---------- Other account pages (still Bootstrap markup) inside the card ---------- */
.auth-card h1 { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.auth-card h2 { font-size: 1.05rem; font-weight: 700; }
.auth-card hr { display: none; }
.auth-card .row { margin: 0; }
.auth-card .row > [class*="col-"] { width: 100%; padding: 0; }
.auth-card .form-control { min-height: 50px; border-radius: 12px; border: 1.5px solid var(--auth-line); font-size: 1rem; }
.auth-card .form-control:focus { border-color: var(--auth-lagoon); box-shadow: 0 0 0 4px rgba(11, 122, 117, .15); }
.auth-card .btn-primary { min-height: 52px; border-radius: 12px; background: var(--auth-lagoon); border-color: var(--auth-lagoon); font-weight: 700; }
.auth-card .btn-primary:hover { background: var(--auth-lagoon-dark); border-color: var(--auth-lagoon-dark); }

/* ---------- Desktop: split screen ---------- */
@media (min-width: 960px) {
    .auth-shell { flex-direction: row; }

    .auth-hero {
        flex: 0 0 44%;
        display: flex;
        flex-direction: column;
        padding: 40px 56px;
    }

    .auth-hero-copy {
        margin-top: auto;
        margin-bottom: auto;
    }

    .auth-hero-title { font-size: 3rem; }
    .auth-hero-text { display: block; }
    .auth-waves { height: 140px; }

    .auth-main {
        justify-content: center;
        padding: 40px 32px;
    }

    .auth-card {
        margin-top: 0;
        padding: 36px 36px 30px;
        box-shadow: none;
        border: 1px solid #E1E9EB;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-input, .auth-submit { transition: none; }
}
