:root {
    --mdist-blue: #0564bd;
    --mdist-blue-dark: #003c78;
    --mdist-navy: #071a32;
    --text: #122033;
    --muted: #65758a;
    --border: #dce5ef;
    --surface: #ffffff;
    --soft: #f5f8fb;
    color-scheme: light;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    min-width: 320px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; }

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(390px, .9fr) minmax(520px, 1.1fr);
}

.auth-visual {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background:
        url("../img/home/hero-premium-meats.webp")
        center center / cover no-repeat;
}

.auth-visual-register {
    background-image:
        url("../img/home/hero-pantry.webp");
}

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(4,34,74,.10), rgba(4,34,74,.78)),
        linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,.22));
}

.auth-visual-copy {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    padding: clamp(38px, 6vw, 82px);
    color: #fff;
}

.auth-kicker,
.auth-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    color: var(--mdist-blue);
}

.auth-visual-copy .auth-kicker {
    color: #a8d8ff;
}

.auth-visual-copy h1 {
    max-width: 620px;
    margin: 12px 0 16px;
    font-size: clamp(38px, 4vw, 64px);
    line-height: 1.02;
    letter-spacing: -.035em;
}

.auth-visual-copy p {
    max-width: 540px;
    margin: 0;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,.90);
}

.auth-panel {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(28px, 5vw, 72px);
    background:
        radial-gradient(circle at 80% 0%, rgba(5,100,189,.08), transparent 32%),
        #fff;
}

.auth-panel-register {
    align-items: center;
}

.auth-card {
    width: min(480px, 100%);
}

.auth-card-register {
    width: min(650px, 100%);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: 42px;
    text-decoration: none;
}

.auth-brand img {
    width: 132px;
    height: auto;
    display: block;
}

.auth-heading {
    margin-bottom: 28px;
}

.auth-heading h2,
.registration-success h2 {
    margin: 8px 0 10px;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.04;
    letter-spacing: -.03em;
    color: var(--mdist-navy);
}

.auth-heading p,
.registration-success p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.auth-message {
    margin: 0 0 22px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.45;
}

.auth-message-error {
    color: #8b1d1d;
    background: #fff1f1;
    border: 1px solid #f1b8b8;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

.field > span:first-child {
    font-size: 14px;
    font-weight: 750;
    color: #26384c;
}

.field input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: var(--text);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.field input:focus {
    border-color: #7fb9e9;
    box-shadow: 0 0 0 4px rgba(5,100,189,.10);
}

.field small,
.password-rule {
    color: #758397;
    font-size: 12px;
    line-height: 1.45;
}

.password-field {
    position: relative;
    display: block;
}

.password-field input {
    padding-right: 70px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    min-width: 52px;
    height: 34px;
    border: 0;
    border-radius: 7px;
    background: #eef4f9;
    color: #34516e;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.password-toggle:hover {
    background: #e3edf5;
}

.auth-primary {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    padding: 0 20px;
    background: var(--mdist-blue);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(5,100,189,.20);
    transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-primary:hover {
    background: #0454a1;
    transform: translateY(-1px);
    box-shadow: 0 12px 30px rgba(5,100,189,.26);
}

.auth-primary:disabled {
    opacity: .68;
    cursor: wait;
    transform: none;
}

.auth-primary-link {
    width: 100%;
}


.auth-forgot {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
}

.auth-forgot a {
    color: var(--mdist-blue);
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.auth-forgot a:hover {
    text-decoration: underline;
}

.auth-links {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
}

.auth-links a,
.auth-back,
.auth-secondary-link {
    color: var(--mdist-blue);
    font-weight: 750;
    text-decoration: none;
}

.auth-links a:hover,
.auth-back:hover,
.auth-secondary-link:hover {
    text-decoration: underline;
}

.auth-back {
    display: table;
    margin: 26px auto 0;
    font-size: 13px;
}

.password-rule {
    margin: -4px 0 0;
}

.registration-success {
    text-align: center;
}

.success-mark {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #e9f7ef;
    color: #15803d;
    font-size: 31px;
    font-weight: 900;
}

.registration-success .auth-primary {
    margin-top: 28px;
}

.account-placeholder-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: #f4f7fb;
}

.account-placeholder {
    width: min(620px, 100%);
    padding: 42px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(14,37,63,.10);
    text-align: center;
}

.account-placeholder .auth-brand {
    margin-bottom: 28px;
}

.account-placeholder .auth-brand img {
    margin: 0 auto;
}

.account-placeholder h1 {
    margin: 10px 0 8px;
    font-size: clamp(30px, 5vw, 44px);
}

.account-placeholder p {
    color: var(--muted);
}

.account-placeholder-note {
    max-width: 480px;
    margin: 24px auto;
    line-height: 1.6;
}

.account-placeholder-actions {
    display: grid;
    gap: 14px;
    margin-top: 30px;
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: 260px;
        max-height: 300px;
    }

    .auth-visual-copy {
        padding: 32px 24px;
    }

    .auth-visual-copy h1 {
        font-size: clamp(32px, 8vw, 46px);
    }

    .auth-panel {
        min-height: auto;
        padding: 34px 20px 48px;
    }

    .auth-brand {
        margin-bottom: 28px;
    }
}

@media (max-width: 560px) {
    .auth-visual {
        min-height: 220px;
    }

    .auth-visual-copy p {
        display: none;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .auth-panel {
        padding-inline: 16px;
    }

    .account-placeholder {
        padding: 30px 22px;
    }
}
