/* ─── Login / Auth pages ─────────────────────────────── */
:root {
    --login-green:      #20734f;
    --login-green-dark: #155f40;
    --login-accent:     #b42318;
    --login-text:       #0f172a;
    --login-muted:      #64748b;
    --login-border:     #d9e1e8;
    --login-font:       'Outfit', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    height: 100%;
    font-family: var(--login-font);
    background: #f1f5f9;
}

/* ── Outer wrapper ── */
.login-wrap {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .login-wrap { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1200px) {
    .login-wrap { grid-template-columns: 5fr 4fr; }
}

/* ── Brand panel (left) ── */
.login-brand {
    display: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #1a5c3e 0%, #20734f 45%, #2a9460 100%);
    padding: 48px 52px;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

@media (min-width: 768px) {
    .login-brand { display: flex; }
}

.login-brand__pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,.06) 0 220px, transparent 220px),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.05) 0 180px, transparent 180px),
        radial-gradient(circle at 60% 65%, rgba(0,0,0,.06) 0 260px, transparent 260px);
    pointer-events: none;
}

.login-brand__logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-brand__logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.25));
}

.login-brand__logo-text { line-height: 1.15; }

.login-brand__logo-text strong {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.01em;
}

.login-brand__logo-text span {
    font-size: 13px;
    color: rgba(255,255,255,.75);
    font-weight: 500;
}

.login-brand__body {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 0;
}

.login-brand__tagline {
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: #fff;
    margin: 0 0 16px;
}

.login-brand__sub {
    font-size: 15px;
    color: rgba(255,255,255,.78);
    line-height: 1.6;
    max-width: 380px;
    margin: 0;
}

.login-brand__pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.login-brand__pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.13);
    border: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.92);
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.login-brand__pill svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    opacity: .85;
}

.login-brand__footer {
    position: relative;
    font-size: 12px;
    color: rgba(255,255,255,.5);
}

/* ── Form panel (right) ── */
.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    background: #fff;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .login-form-panel { min-height: unset; }
}

.login-form-inner {
    width: 100%;
    max-width: 400px;
}

/* Mobile brand header (shown only on small screens) */
.login-mobile-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
}

@media (min-width: 768px) {
    .login-mobile-brand { display: none; }
}

.login-mobile-brand img { width: 40px; height: 40px; object-fit: contain; }

.login-mobile-brand strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--login-accent);
}

/* Title area */
.login-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--login-text);
    margin: 0 0 6px;
    letter-spacing: -.02em;
}

.login-subtitle {
    font-size: 14px;
    color: var(--login-muted);
    margin: 0 0 32px;
}

/* Form elements */
.login-field { margin-bottom: 18px; }

.login-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 6px;
}

.login-input-wrap { position: relative; }

.login-input {
    display: block;
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--login-border);
    border-radius: 9px;
    background: #fafbfc;
    color: var(--login-text);
    font-size: 15px;
    font-family: var(--login-font);
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.login-input:focus {
    border-color: var(--login-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(32,115,79,.12);
}

/* Password toggle */
.login-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--login-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-eye svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.login-eye:hover { color: var(--login-text); }

/* Error message */
.login-error {
    display: none;
    margin-top: 6px;
    font-size: 13px;
    color: var(--login-accent);
    font-weight: 700;
}

.login-error.is-visible { display: block; }

/* Submit */
.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    margin-top: 8px;
    border: none;
    border-radius: 9px;
    background: var(--login-green);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--login-font);
    cursor: pointer;
    transition: background .15s, transform .1s;
    box-shadow: 0 6px 18px rgba(32,115,79,.22);
}

.login-btn:hover { background: var(--login-green-dark); transform: translateY(-1px); }
.login-btn:active { transform: translateY(0); }

.login-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    margin-left: 8px;
}

/* Customer link */
.login-alt {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--login-muted);
}

.login-alt a {
    color: var(--login-green);
    font-weight: 700;
    text-decoration: none;
}

.login-alt a:hover { text-decoration: underline; }

/* Alert banner (inline error) */
.login-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    margin-bottom: 20px;
    border-radius: 9px;
    border: 1px solid #f5c2be;
    background: #fff6f5;
    color: #8f2017;
    font-size: 13px;
    font-weight: 650;
}

.login-alert svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
