/* ═══════════════════════════════════════════════════════════════
   loginStyles.css — zip at zip root; upload as <prefix>_logincss.
*/

/* ── FONT LOADING (must come first) ────────────────────────── */
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

/* ── Per-community theming ──────────────────────────────────── */
:root {
    --brand: #2C2A29;
    --brand-deep: #1D1D22;
    --accent: #E32E6E;
    --accent-bright: #EE81A8;
    --paper: #FFFFFF;
    --ink: #2C2A29;
    --muted: #B1B1B1;
    --line: #D8D8D8;
    --on-accent: #FFFFFF;
    --paper-alt: #F9F9F9;
}

/* ── Reset / base ─────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    font-family:"Poppins", sans-serif;
    background: var(--paper, #FFFFFF);
    color: var(--ink, #2C2A29);
    font-size: 15px;
}

.page-wrap {
    display: flex;
    min-height: 100vh
}

/* ── Left brand panel ─────────────────────────────────────── */
.brand-panel {
    width: 44%;
    background: linear-gradient(160deg, var(--brand, #2C2A29) 0%, var(--brand-deep, #1D1D22) 100%) !important;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 52px;
    position: relative;
}

.brand-panel::after {
    content: "";
    position: absolute;
    right: -1px;
    top: 0;
    bottom: 0;
    width: 6px;
    background: var(--accent, #E32E6E)
}

.logo-slot {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    display: inline-block;
    align-self: flex-start
}

.logo-slot img,
img.logo-img {
    max-width: 320px !important;
    max-height: none !important;
    width: auto !important;
    height: auto !important;
    display: block
}

.brand-copy h1 {
    font-weight: 700;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.12;
    letter-spacing: -.015em;
    color: #fff
}

.brand-copy h1 em {
    font-style: normal;
    color: var(--accent-bright, #EE81A8)
}

.brand-copy p {
    margin-top: 18px;
    font-size: 15px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .62);
    max-width: 38ch
}

.assurance {
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, .55)
}

.assurance div {
    display: flex;
    align-items: center;
    gap: 10px
}

.assurance .tick {
    color: var(--accent, #E32E6E);
    font-weight: 700
}

/* ── Right form panel ─────────────────────────────────────── */
.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px
}

.card {
    width: 60%;
    /* max-width: 460px; */
}

/* was 720 - too wide; 460 keeps a clean column */
.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent, #E32E6E);
    margin-bottom: 10px
}

.card h2 {
    font-weight: 600;
    font-size: 30px;
    letter-spacing: -.01em;
    margin-bottom: 6px;
    color: var(--ink, #2C2A29)
}

.card .sub {
    font-size: 15.5px;
    color: var(--muted, #B1B1B1);
    margin-bottom: 32px
}

/* ── Fields ───────────────────────────────────────────────── */
.row {
    display: flex;
    gap: 24px
}

.row .field {
    flex: 1
}

.field {
    position: relative;
    margin-bottom: 26px;
    text-align: left
}

.field .requiredInput {
    display: block;
    width: 100%
}

.field .requiredBlock {
    display: none
}

.fld-input,
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
    width: 100%;
    font: inherit;
    font-size: 15.5px;
    padding: 22px 2px 10px;
    border: none;
    border-bottom: 1.5px solid var(--line, #D8D8D8);
    background: transparent;
    outline: none;
    color: var(--ink, #2C2A29);
    border-radius: 0;
}

.fld-label {
    position: absolute;
    left: 2px;
    top: 20px;
    font-size: 15px;
    color: var(--muted, #B1B1B1);
    pointer-events: none;
    transition: all .18s ease;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Float the label when focused, JS-marked, OR the input simply has a value.
   :has(:not(:placeholder-shown)) is a JS-free net so server-rerendered values
   (e.g. returning with a validation error) never overlap their label.
   Adjacent-sibling can't be used: required="true" wraps the input in
   span.requiredInput, so the label isn't the input's direct sibling. */
.field:focus-within .fld-label,
.field.has-value .fld-label,
.field:has(.fld-input:not(:placeholder-shown)) .fld-label {
    top: 0;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand);
}

.field::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--accent, #E32E6E);
    transition: width .28s ease
}

.field:focus-within::after {
    width: 100%
}

.hint {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    color: var(--muted, #B1B1B1);
    line-height: 1.5
}

/* ── Submit ───────────────────────────────────────────────── */
.submit,
input.submit,
a.submit {
    display: block;
    width: 100%;
    margin-top: 8px;
    font-weight: 600;
    font-size: 15.5px;
    letter-spacing: .02em;
    color: var(--on-accent, #FFFFFF);
    background: var(--accent, #E32E6E);
    border: none;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .2s ease, background .2s;
}

.submit:hover {
    background: var(--accent-bright, #EE81A8);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18)
}

.submit:focus-visible {
    outline: 3px solid var(--brand);
    outline-offset: 2px
}

/* ── Existing-customer link (now below submit) ────────────── */
.signin {
    margin: 20px 0 0;
    text-align: center;
    font-size: 14px;
    color: var(--muted, #B1B1B1)
}

.inline-link,
.card a.inline-link {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--accent, #E32E6E)
}

.legal {
    margin-top: 30px;
    font-size: 11.5px;
    line-height: 1.6;
    color: #98A0AB;
    text-align: center
}

/* ── Password-reset-sent panel ────────────────────────────── */
.reset-sent {
    text-align: center;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink, #2C2A29);
    padding: 8px 4px 22px
}

.reset-icon {
    font-size: 34px;
    color: var(--accent, #E32E6E);
    margin-bottom: 12px
}

/* ── apex:pageMessages ────────────────────────────────────── */
.message {
    background: #FCEBEA;
    border: 1px solid #C00;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0 0 18px;
    font-size: 13.5px
}

.message .messageText {
    color: #8B1A12
}

.message .msgIcon,
.message h4 {
    display: none
}

.message ul {
    margin: 0;
    padding: 0
}

.message li {
    list-style: none;
    border: 0
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width:900px) {
    .page-wrap {
        flex-direction: column
    }

    .brand-panel {
        width: 100%;
        padding: 28px 24px;
        gap: 18px
    }

    .brand-panel::after {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: auto;
        height: 5px
    }

    .brand-copy h1 {
        font-size: 24px;
        max-width: none
    }

    .brand-copy p,
    .assurance {
        display: none
    }

    .form-panel {
        padding: 36px 20px 48px
    }

    .row {
        flex-direction: column;
        gap: 0
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important
    }
}
