:root {
    --yellow: #FFD52F;
    --yellow-soft: #FFF3C2;
    --red: #D7192A;
    --black: #050505;
    --ink: #16181d;
    --muted: #636a76;
    --line: #e3e5ea;
    --field: #f6f7f9;
    --ok-bg: #edfbf3;
    --ok-line: #a9e2c3;
    --ok-ink: #12673a;
    --err-bg: #fff1f2;
    --err-line: #f6b8be;
    --err-ink: #a3121f;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 213, 47, .28), transparent 42%),
        radial-gradient(circle at 92% 88%, rgba(215, 25, 42, .10), transparent 40%),
        #f3f1ea;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.shell {
    width: 100%;
    max-width: 920px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(5, 5, 5, .14), 0 2px 6px rgba(5, 5, 5, .05);
}

/* Brand panel */
.brand {
    position: relative;
    padding: 44px 40px;
    background: linear-gradient(160deg, var(--yellow) 0%, #ffe271 100%);
    display: flex;
    flex-direction: column;
    gap: 28px;
    overflow: hidden;
}
.brand::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 46px solid rgba(5, 5, 5, .06);
}
.brand-logo { width: 100%; max-width: 300px; height: auto; display: block; }
.brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--black);
    color: var(--yellow);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    width: fit-content;
}
.brand h1 {
    margin: 12px 0 8px;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 800;
    color: var(--black);
}
.brand h1 span { color: var(--red); }
.brand p { margin: 0; color: #3b3a33; font-size: 14px; line-height: 1.6; max-width: 340px; }
.brand-list { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 10px; position: relative; z-index: 1; }
.brand-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--black);
}
.brand-list i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(255, 255, 255, .62);
    color: var(--black);
    font-size: 14px;
}

/* Form panel */
.panel { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.panel-badge { width: 52px; height: 52px; margin-bottom: 18px; }
.panel h2 { margin: 0 0 6px; font-size: 26px; font-weight: 800; }
.panel .lead { margin: 0 0 26px; color: var(--muted); font-size: 14px; }

.alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    border: 1px solid;
}
.alert i { margin-top: 2px; }
.alert.error { background: var(--err-bg); border-color: var(--err-line); color: var(--err-ink); }
.alert.success { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok-ink); }

.field { margin-bottom: 16px; }
.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #3c414b;
}
.control { position: relative; }
.control > i.lead-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #8a909b;
    font-size: 15px;
    pointer-events: none;
    transition: color .2s;
}
.control input {
    width: 100%;
    height: 50px;
    padding: 0 46px 0 44px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    background: var(--field);
    color: var(--ink);
    font: 600 15px 'Manrope', 'Segoe UI', sans-serif;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.control input::placeholder { color: #a2a7b0; font-weight: 500; }
.control input:focus {
    border-color: var(--black);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 213, 47, .45);
}
.control:focus-within > i.lead-icon { color: var(--black); }
.toggle-pass {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #7b818c;
    cursor: pointer;
    font-size: 15px;
}
.toggle-pass:hover, .toggle-pass:focus-visible { background: #eceef2; color: var(--black); outline: none; }
.caps {
    display: none;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 700;
    color: #8a5a00;
}
.caps.show { display: flex; gap: 6px; align-items: center; }

.submit {
    width: 100%;
    height: 52px;
    margin-top: 8px;
    border: 0;
    border-radius: 14px;
    background: var(--black);
    color: #fff;
    font: 800 15px 'Manrope', 'Segoe UI', sans-serif;
    letter-spacing: .02em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 26px rgba(5, 5, 5, .22);
    transition: transform .15s, box-shadow .2s, background .2s;
}
.submit:hover { background: #1d1f24; transform: translateY(-1px); box-shadow: 0 16px 30px rgba(5, 5, 5, .26); }
.submit:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.submit[disabled] { opacity: .75; cursor: progress; transform: none; }
.submit .arrow { color: var(--yellow); }

.foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}
.foot i { color: #9aa0aa; margin-top: 2px; }

@media (max-width: 820px) {
    body { align-items: flex-start; padding: 16px; }
    .shell { grid-template-columns: 1fr; border-radius: 22px; }
    .brand { padding: 26px 24px; gap: 14px; }
    .brand-logo { max-width: 220px; }
    .brand h1 { font-size: 26px; margin-top: 10px; }
    .brand p, .brand-list { display: none; }
    .panel { padding: 30px 24px 26px; }
    .panel-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* Shared additions for the seller and admin portals */
.field-meta {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}
.field-meta a, .foot a {
    color: var(--ink);
    font-size: 12px;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: var(--yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.field-meta a:hover, .foot a:hover { color: var(--red); }
.secondary {
    width: 100%;
    height: 50px;
    margin-top: 12px;
    border: 1.5px solid var(--black);
    border-radius: 14px;
    background: #fff;
    color: var(--black);
    font: 800 14px 'Manrope', 'Segoe UI', sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    transition: background .2s;
}
.secondary:hover { background: var(--yellow-soft); }
.secondary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 2px;
    color: #9aa0aa;
    font-size: 12px;
    font-weight: 700;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
