:root {
    --forest-950: #092b20;
    --forest-900: #103e2c;
    --forest-800: #174d35;
    --forest-700: #206447;
    --forest-100: #e9f4ed;
    --orange: #ef8f3a;
    --ink: #17221d;
    --muted: #66736c;
    --line: #dce5df;
    --surface: #fff;
    --background: #f4f7f5;
    --danger: #b3261e;
    font-family: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }

.login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 47%) 1fr;
}

.brand-panel {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: clamp(32px, 5vw, 72px);
    color: #fff;
    background:
        linear-gradient(155deg, rgba(8, 41, 29, .96), rgba(20, 77, 53, .93)),
        url("/images/photo") center/cover;
}

.brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0);
    background-size: 28px 28px;
}

.brand-content {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - clamp(64px, 10vw, 144px));
    display: flex;
    flex-direction: column;
}

.department-mark { display: flex; align-items: center; gap: 16px; }
.department-mark img {
    width: 76px; height: 76px; object-fit: contain;
    background: rgba(255,255,255,.96); border-radius: 18px; padding: 5px;
}
.department-mark h2 { margin: 3px 0 0; font-size: 21px; }
.eyebrow { margin: 0; color: #c9ded1; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }

.brand-message { margin: auto 0; max-width: 620px; }
.product-pill {
    display: inline-block; padding: 8px 13px; border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px; background: rgba(255,255,255,.08); font-size: 12px;
    font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.brand-message h1 { margin: 24px 0 18px; font-size: clamp(56px, 7.2vw, 104px); line-height: .88; letter-spacing: -.065em; }
.brand-message h1 span { color: #9bd0ac; }
.brand-message p { max-width: 530px; color: #d3e4d9; font-size: clamp(16px, 1.5vw, 20px); line-height: 1.65; }

.workflow-strip { display: flex; align-items: center; gap: 12px; color: #c8dccc; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.workflow-strip i { width: 28px; height: 1px; background: rgba(255,255,255,.3); }
.forest-glow { position: absolute; border-radius: 50%; filter: blur(2px); }
.forest-glow-one { width: 420px; height: 420px; right: -160px; top: -130px; background: rgba(70, 172, 115, .16); }
.forest-glow-two { width: 300px; height: 300px; left: -120px; bottom: -100px; background: rgba(239, 143, 58, .10); }

.form-panel { min-height: 100vh; padding: 32px clamp(28px, 6vw, 92px) 22px; display: flex; flex-direction: column; }
.mobile-brand { display: none; }
.login-card { width: min(100%, 520px); margin: auto; }
.form-heading { margin-bottom: 34px; }
.form-heading h2 { margin: 7px 0 9px; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.04em; }
.form-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.6; }
.step-label { margin: 0; color: var(--forest-700); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .11em; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 20px; }
.field > span { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; font-weight: 650; }
.field small { color: var(--muted); font-weight: 500; }
.field select, .input-wrap, .otp-input {
    width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 12px;
    background: var(--surface); transition: border-color .18s, box-shadow .18s;
}
.field select { padding: 0 38px 0 14px; color: var(--ink); }
.field select:disabled { cursor: not-allowed; color: #8c9690; background: #edf1ee; }
.input-wrap { display: flex; align-items: center; padding: 0 12px; }
.input-wrap:focus-within, .field select:focus, .otp-input:focus {
    outline: none; border-color: var(--forest-700); box-shadow: 0 0 0 4px rgba(32,100,71,.1);
}
.input-wrap > svg { width: 20px; fill: none; stroke: #718078; stroke-width: 1.7; }
.input-wrap input { min-width: 0; flex: 1; height: 50px; padding: 0 11px; border: 0; outline: 0; background: transparent; }
.password-toggle { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; }
.password-toggle svg { width: 19px; fill: none; stroke: #718078; stroke-width: 1.7; }
.otp-input { padding: 0 16px; text-align: center; font-size: 23px; font-weight: 700; letter-spacing: .35em; }

.primary-button {
    width: 100%; min-height: 54px; margin-top: 4px; padding: 0 19px;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    border: 0; border-radius: 12px; color: #fff; background: var(--forest-800);
    font-weight: 700; box-shadow: 0 10px 25px rgba(23,77,53,.2); transition: .18s;
}
.primary-button:hover { background: var(--forest-700); transform: translateY(-1px); }
.primary-button:disabled { cursor: wait; opacity: .65; transform: none; }
.primary-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.support-link { display: block; margin-top: 22px; color: var(--forest-700); text-align: center; font-size: 13px; font-weight: 650; text-decoration: none; }
.message { display: none; margin: 0 0 14px; padding: 11px 13px; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.message.error { display: block; color: var(--danger); background: #fff0ef; }
.message.success { display: block; color: var(--forest-800); background: var(--forest-100); }
.back-button { margin: 0 0 28px; padding: 0; border: 0; color: var(--forest-700); background: transparent; font-weight: 650; }
.otp-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 14px; color: var(--forest-700); background: var(--forest-100); }
.otp-icon svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.otp-step[hidden] { display: none; }
.delivery-note {
    margin: -7px 0 18px; padding: 12px 14px; border-radius: 10px;
    color: var(--muted); background: var(--forest-100); font-size: 12px; line-height: 1.7;
}
.delivery-note b { color: var(--forest-800); font-weight: 650; }

footer { display: flex; justify-content: space-between; gap: 20px; color: #89938e; font-size: 11px; }

@media (max-width: 900px) {
    .login-shell { grid-template-columns: 1fr; }
    .brand-panel { display: none; }
    .form-panel { padding: 22px; }
    .mobile-brand { display: flex; align-items: center; gap: 12px; }
    .mobile-brand img { width: 55px; height: 55px; object-fit: contain; }
    .mobile-brand strong, .mobile-brand span { display: block; }
    .mobile-brand strong { color: var(--forest-900); }
    .mobile-brand span { margin-top: 3px; color: var(--muted); font-size: 11px; }
    footer { flex-direction: column; align-items: center; gap: 5px; margin-top: 30px; }
}

@media (max-width: 520px) {
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .form-panel { padding: 18px; }
    .login-card { margin-top: 56px; }
}
