/* ═══════════════════════════════════════════════════════════════
   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: #000000;
    --brand-deep: #1A1A1A;
    --accent: #DFE22B;
    --accent-bright: #E8EB4A;
    --paper: #FFFFFF;
    --ink: #000000;
    --muted: #3C434A;
    --line: #D7CEC2;
    --on-accent: #000000;
    --paper-alt: #F4EDE3;
}
/* ── 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, #000000);
    font-size: 15px;
}
.page-wrap {
    display: flex;
    min-height: 100vh
}
/* ── Left brand panel ─────────────────────────────────────── */
.brand-panel {
    width: 44%;
    background: linear-gradient(160deg, var(--brand, #000000) 0%, var(--brand-deep, #1A1A1A) 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, #DFE22B)
}
.logo-slot {
    background: #fff;
    border-radius: 12px;
    padding: 74px 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, #E8EB4A)
}
.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, #DFE22B);
    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, #DFE22B);
    margin-bottom: 10px
}
.card h2 {
    font-weight: 600;
    font-size: 30px;
    letter-spacing: -.01em;
    margin-bottom: 6px;
    color: var(--ink, #000000)
}
.card .sub {
    font-size: 15.5px;
    color: var(--muted, #3C434A);
    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,
.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, #D7CEC2);
    background: transparent;
    outline: none;
    color: var(--ink, #000000);
    border-radius: 0;
}
.fld-label {
    position: absolute;
    left: 2px;
    top: 20px;
    font-size: 15px;
    color: var(--muted, #3C434A);
    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, #DFE22B);
    transition: width .28s ease
}
.field:focus-within::after {
    width: 100%
}
.hint {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    color: var(--muted, #3C434A);
    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(--paper, #FFFFFF);
    background: var(--brand, #000000);
    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, #E8EB4A);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
    color: var(--brand, #000000);
}
.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, #3C434A)
}
.inline-link,
.card a.inline-link {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--accent, #DFE22B)
}
.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, #000000);
    padding: 8px 4px 22px
}
.reset-icon {
    font-size: 34px;
    color: var(--accent, #DFE22B);
    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,
.message .msgIcon,
.message h4,
.message ul {
    margin: 0;
    padding: 0
}
.message li {
    list-style: none;
    border: 0
}
/* ── Responsive ───────────────────────────────────────────── */
@media (max-width:900px) {
    .page-wrap
}
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important
    }
}
