/* =====================================================================
   EMAS | Mobile Stockist site - sign in page. This page's own stylesheet. (Login.aspx at the site root)
   Desktop: brand panel left, sign in card right.
   Tablet / phone: brand band on top, card overlapping it.
   ===================================================================== */
@font-face { font-family: 'EMAS Lexend'; src: url('../fonts/lexend.woff') format('woff'); font-weight: 300 700; font-style: normal; font-display: swap; }
:root {
    /* Teal & Saffron - the stockist site's own colours */
    --g9: #0B3C49; --g8: #0E4F5E; --g7: #0F6470; --g6: #127C82; --g5: #1A9A9B; --g4: #39B6B0; --g1: #E3F4F3;
    --gold: #F4A51C; --gold-d: #C27C00;
    --ink: #0F1E24; --mut: #667C82; --line: #D6E6E8; --bg: #F1F6F7; --red: #D33A3A;
    --ff-d: 'EMAS Lexend', 'Segoe UI', Roboto, Arial, sans-serif;
    --ff-b: 'EMAS Lexend', 'Segoe UI', Roboto, Arial, sans-serif;
    --saffron: linear-gradient(135deg, #FFC24D 0%, #F4A51C 50%, #E58A00 100%);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
    font-family: var(--ff-b);
    background: var(--bg); color: var(--ink); font-size: 14px;
    -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sl { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(380px, 46%) 1fr; }

/* ------------------------------ brand side ------------------------------ */
.sl-brand {
    position: relative; overflow: hidden; display: flex; flex-direction: column;
    padding: 40px 48px 28px; color: #fff;
    background:
        radial-gradient(700px 420px at 110% -10%, rgba(244,165,28,.22), transparent 60%),
        radial-gradient(600px 500px at -20% 110%, rgba(57,182,176,.35), transparent 60%),
        linear-gradient(155deg, var(--g9) 0%, var(--g8) 45%, var(--g6) 100%);
}
/* soft leaf-vein lines */
.sl-brand:before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09;
    background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 26px);
}
.sl-glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.sl-glow.g1 { width: 340px; height: 340px; right: -120px; top: 32%; border: 1px solid rgba(255,255,255,.12); }
.sl-glow.g2 { width: 520px; height: 520px; right: -230px; top: 22%; border: 1px dashed rgba(255,255,255,.08); }

.sl-brand-top { position: relative; display: flex; align-items: center; gap: 13px; }
.sl-seal {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
    background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.14), 0 10px 24px -10px rgba(0,0,0,.5);
}
.sl-seal img { width: 36px; height: 36px; object-fit: contain; }
.sl-name b { display: block; font-size: 22px; font-weight: 800; letter-spacing: .14em; line-height: 1; }
.sl-name span { display: block; margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.72); }

.sl-pitch { position: relative; margin: auto 0; padding: 40px 0 30px; max-width: 470px; }
.sl-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; border-radius: 999px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.sl-chip svg { width: 16px; height: 16px; color: var(--gold); }
.sl-pitch h1 { margin: 18px 0 14px; font-size: clamp(28px, 3.1vw, 40px); line-height: 1.14; font-weight: 800; letter-spacing: -.02em; }
.sl-pitch h1 em { font-style: normal; color: var(--gold); }
.sl-pitch p { margin: 0; font-size: 15px; line-height: 1.65; color: rgba(255,255,255,.82); }

.sl-feat { position: relative; list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; max-width: 470px; }
.sl-feat li {
    display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 14px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.sl-feat i { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; background: rgba(244,165,28,.16); color: var(--gold); }
.sl-feat i svg { width: 19px; height: 19px; }
.sl-feat b { display: block; font-size: 14px; font-weight: 700; }
.sl-feat span { display: block; margin-top: 2px; font-size: 12.5px; color: rgba(255,255,255,.7); }

.sl-brand-foot { position: relative; font-size: 12px; color: rgba(255,255,255,.55); }

/* ------------------------------ sign in ------------------------------ */
.sl-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px 22px; }
.sl-card {
    width: 100%; max-width: 420px; background: #fff; border-radius: 24px; padding: 34px 32px 28px;
    border: 1px solid #e6eeea; box-shadow: 0 30px 60px -36px rgba(11,60,73,.45), 0 4px 14px -8px rgba(11,60,73,.12);
    animation: slIn .45s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes slIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sl-logo { display: block; height: 46px; width: auto; margin: 0 0 22px; }
.sl-card h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.sl-sub { margin: 6px 0 24px; color: var(--mut); font-size: 14px; }

.sl-msg { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 18px; padding: 11px 13px; border-radius: 12px; font-size: 13px; font-weight: 600; line-height: 1.45; }
.sl-msg.bad { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.sl-msg.ok { background: var(--g1); color: var(--g7); border: 1px solid #BFE3E1; }

.sl-fld { margin-bottom: 16px; }
.sl-fld label { display: block; margin-bottom: 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #475569; }
.sl-in { position: relative; }
.sl-in > svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: #94a3b8; pointer-events: none; transition: color .15s; }
.sl-in input {
    width: 100%; height: 52px; padding: 0 48px 0 46px; border: 1.5px solid #d6e1dc; border-radius: 14px;
    font: inherit; font-size: 15.5px; font-weight: 600; color: var(--ink); background: #f9fbfa;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.sl-in input::placeholder { color: #a3b1ab; font-weight: 500; }
.sl-in input.up { text-transform: uppercase; letter-spacing: .06em; }
.sl-in input.up::placeholder { text-transform: none; letter-spacing: 0; }
.sl-in input:focus { outline: 0; border-color: var(--g5); background: #fff; box-shadow: 0 0 0 4px rgba(18,124,130,.14); }
.sl-in:focus-within > svg { color: var(--g5); }

.sl-eye {
    position: absolute; right: 6px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border: 0; border-radius: 10px;
    display: grid; place-items: center; background: transparent; color: #94a3b8; cursor: pointer;
}
.sl-eye:hover { background: #eef4f1; color: var(--g6); }
.sl-eye svg { width: 19px; height: 19px; }
.sl-eye .off, .sl-eye.show .on { display: none; }
.sl-eye.show .off { display: block; }

.sl-btn {
    width: 100%; height: 52px; margin-top: 6px; border: 0; border-radius: 14px; cursor: pointer;
    font: inherit; font-size: 16px; font-weight: 800; letter-spacing: .01em; color: #fff;
    background: linear-gradient(135deg, var(--g5), var(--g7));
    box-shadow: 0 14px 26px -14px rgba(15,100,112,.85);
    transition: transform .12s ease, box-shadow .15s ease, filter .15s;
    -webkit-appearance: none; appearance: none;
}
.sl-btn:hover { filter: brightness(1.06); box-shadow: 0 18px 30px -14px rgba(15,100,112,.9); }
.sl-btn:active { transform: translateY(1px); }
.sl-btn.busy, .sl-btn:disabled { opacity: .75; cursor: progress; }

.sl-help {
    display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; padding: 12px 14px; border-radius: 13px;
    background: #fffaf0; border: 1px solid #f6e3b8; color: #7a5a14; font-size: 12.5px; line-height: 1.55;
}
.sl-help svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: var(--gold-d); }

.sl-foot { margin-top: 22px; font-size: 12px; color: #94a3b8; }

/* ------------------------------ tablet ------------------------------ */
@media (max-width: 980px) {
    .sl { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .sl-brand { padding: 26px 24px 92px; }
    .sl-brand-foot, .sl-feat, .sl-glow { display: none; }
    .sl-pitch { margin: 0; padding: 26px 0 0; max-width: 560px; }
    .sl-pitch h1 { font-size: 30px; margin: 14px 0 10px; }
    .sl-pitch p { font-size: 14px; }
    .sl-main { justify-content: flex-start; padding: 0 18px 22px; margin-top: -70px; position: relative; z-index: 2; }
    .sl-card { max-width: 460px; }
}

/* ------------------------------ phone ------------------------------ */
@media (max-width: 560px) {
    body { background: #fff; }
    .sl-brand { padding: 20px 18px 84px; }
    .sl-seal { width: 44px; height: 44px; }
    .sl-seal img { width: 29px; height: 29px; }
    .sl-name b { font-size: 19px; }
    .sl-name span { font-size: 9.5px; letter-spacing: .18em; }
    .sl-pitch { padding-top: 20px; }
    .sl-pitch h1 { font-size: 24px; }
    .sl-pitch p { display: none; }
    .sl-main { padding: 0 14px 18px; margin-top: -64px; }
    .sl-card { padding: 26px 20px 22px; border-radius: 22px; }
    .sl-logo { height: 38px; margin-bottom: 18px; }
    .sl-card h2 { font-size: 22px; }
    .sl-sub { margin-bottom: 20px; font-size: 13.5px; }
    .sl-in input { height: 50px; font-size: 16px; } /* 16px keeps iOS from zooming in */
}

@media (prefers-reduced-motion: reduce) { .sl-card { animation: none; } }


/* =====================================================================
   Brand finish - type, shapes, motion (transform / opacity only)
   ===================================================================== */
input, button { font-family: var(--ff-b); }
.sl-pitch h1, .sl-card h2, .sl-name b { font-family: var(--ff-d); }
.sl-brand:before, .sl-glow { display: none; }
.sl-brand {
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 260'%3E%3Cpath d='M100 6C100 6 22 104 22 160a78 78 0 0 0 156 0C178 104 100 6 100 6z' fill='%23F4A51C' fill-opacity='.18'/%3E%3Cpath d='M100 48C100 48 50 116 50 160a50 50 0 0 0 100 0C150 116 100 48 100 48z' fill='%23F4A51C' fill-opacity='.22'/%3E%3C/svg%3E") no-repeat right -60px bottom -40px / 460px auto,
        linear-gradient(150deg, #0B3C49 0%, #0F6470 60%, #127C82 100%);
}
.sl-chip { background: rgba(244,165,28,.16); border-color: rgba(244,165,28,.4); color: #FFD58A; text-transform: none; letter-spacing: 0; font-size: 13px; }
.sl-name span { text-transform: none; letter-spacing: .04em; font-size: 12px; }
.sl-pitch h1 { font-weight: 700; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; }
.sl-pitch h1 em { background: var(--saffron); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sl-feat li { border-radius: 16px; background: rgba(255,255,255,.06); transition: transform .2s ease; }
.sl-feat li:hover { transform: translateX(4px); }
.sl-feat i { background: var(--saffron); color: #3D2600; border-radius: 50%; }
.sl-pitch, .sl-feat li { animation: slRise .6s cubic-bezier(.2,.8,.2,1) both; }
.sl-feat li:nth-child(1) { animation-delay: .12s; } .sl-feat li:nth-child(2) { animation-delay: .22s; } .sl-feat li:nth-child(3) { animation-delay: .32s; }
@keyframes slRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sl-card { border-radius: 26px; box-shadow: 0 30px 60px -40px rgba(11,60,73,.55); }
.sl-card h2 { font-size: 30px; font-weight: 700; color: var(--g9); }
.sl-fld label { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.sl-in input { background: #fff; }
.sl-btn { border-radius: 999px; background: linear-gradient(120deg, #0B3C49, #127C82); transition: transform .15s ease; }
.sl-btn:hover { transform: translateY(-1px); }
.sl-help { border-radius: 16px; }
:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 2px; }
@media (max-width: 980px) { .sl-brand { background-position: right -90px top -60px, 0 0; background-size: 300px auto, auto; } }
@media (max-width: 560px) { .sl-card h2 { font-size: 25px; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation: none !important; transition: none !important; } }
