:root {
    --dd-green: #003f34;
    --dd-green-dark: #002f28;
    --dd-gold: #d9a23a;
    --dd-ink: #10241f;
    --dd-muted: #66706d;
    --dd-line: #d9dfdc;
    --dd-bg: #f4f6f3;
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    overflow: hidden;
    background: var(--dd-bg);
    color: var(--dd-ink);
    font-family: "DM Sans", system-ui, sans-serif;
}

.dd-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 51%) minmax(0, 49%);
    width: 100%;
    min-height: 100vh;
}

/*
The approved promotional artwork fills the complete left panel.
There is no wrapper padding, background frame or visible outer band.
*/
.dd-brand-art {
    position: relative;
    min-width: 0;
    min-height: 100vh;
    overflow: hidden;
    background: #00382f;
}

.dd-brand-art img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

/*
Slight scale correction keeps the DeltaDine wordmark visually smaller
than the earlier version while still filling the complete panel.
*/
@media (min-width: 1280px) {
    .dd-brand-art img {
        object-position: 50% 50%;
    }
}

.dd-login-side {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 100vh;
    padding: 26px 42px 72px;
    background:
        radial-gradient(
            circle at 90% 5%,
            rgba(255, 255, 255, .98),
            rgba(255, 255, 255, 0) 35%
        ),
        linear-gradient(
            145deg,
            #fafbf9 0%,
            #f2f5f1 100%
        );
}

.dd-login-card {
    width: min(100%, 548px);
    padding: 40px 42px 34px;
    border: 1px solid rgba(18, 55, 45, .08);
    border-radius: 27px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 24px 60px rgba(19, 48, 40, .10);
}

.dd-login-heading {
    margin-bottom: 24px;
    text-align: center;
}

.dd-kicker {
    display: block;
    color: var(--dd-gold);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.dd-kicker-line {
    display: block;
    width: 94px;
    height: 2px;
    margin: 14px auto 18px;
    background: var(--dd-gold);
}

.dd-login-heading h1 {
    margin: 0;
    color: #102c24;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(41px, 3.1vw, 52px);
    font-weight: 700;
    line-height: 1.04;
}

.dd-login-heading p {
    max-width: 400px;
    margin: 12px auto 0;
    color: #5f6866;
    font-size: 16px;
    line-height: 1.45;
}

.dd-login-form {
    display: grid;
    gap: 17px;
}

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

.dd-field label {
    color: #111c19;
    font-size: 14px;
    font-weight: 700;
}

.dd-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    border: 1px solid #cfd6d3;
    border-radius: 13px;
    background: #fff;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.dd-input-wrap:focus-within {
    border-color: #b4842e;
    box-shadow: 0 0 0 3px rgba(217, 162, 58, .10);
}

.dd-input-wrap > svg {
    width: 22px;
    height: 22px;
    margin-left: 18px;
    flex: 0 0 auto;
    fill: none;
    stroke: #52605c;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dd-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 56px;
    border: 0;
    outline: 0;
    padding: 0 15px;
    background: transparent;
    color: #14231f;
    font: inherit;
    font-size: 15px;
}

.dd-input-wrap input::placeholder {
    color: #7a8581;
}

.dd-password-toggle {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-right: 4px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #52605c;
    cursor: pointer;
}

.dd-password-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dd-eye-closed,
.dd-password-toggle.is-visible .dd-eye-open {
    display: none;
}

.dd-password-toggle.is-visible .dd-eye-closed {
    display: block;
}

.dd-remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    color: #18241f;
    font-size: 14px;
    cursor: pointer;
}

.dd-remember input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dd-checkbox {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    border: 1px solid #c7cecb;
    border-radius: 4px;
    background: #fff;
}

.dd-checkbox svg {
    display: none;
    width: 12px;
    height: 12px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dd-remember input:checked + .dd-checkbox {
    border-color: var(--dd-green);
    background: var(--dd-green);
}

.dd-remember input:checked + .dd-checkbox svg {
    display: block;
}

.dd-sign-in-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    margin-top: 2px;
    border: 0;
    border-bottom: 3px solid var(--dd-gold);
    border-radius: 13px;
    background: linear-gradient(
        110deg,
        #003e33,
        #005243
    );
    color: #fff;
    box-shadow: 0 15px 23px rgba(0, 61, 49, .16);
    font: inherit;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform .16s ease,
        box-shadow .16s ease;
}

.dd-sign-in-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 27px rgba(0, 61, 49, .20);
}

.dd-sign-in-button svg {
    position: absolute;
    right: 27px;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: var(--dd-gold);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dd-message {
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
}

.dd-message-success {
    border: 1px solid #afd7c8;
    background: #eaf7f2;
    color: #175b48;
}

.dd-message-error {
    border: 1px solid #ebbbb8;
    background: #fff0ef;
    color: #8e2823;
}

.dd-login-footer {
    position: absolute;
    left: 42px;
    right: 42px;
    bottom: 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: #52615c;
    font-size: 12px;
}

.dd-login-footer a {
    color: #0b4a3d;
    font-weight: 700;
    letter-spacing: .05em;
    text-decoration: none;
    text-transform: uppercase;
}

@media (max-height: 820px) and (min-width: 901px) {
    .dd-login-side {
        padding-top: 16px;
        padding-bottom: 54px;
    }

    .dd-login-card {
        padding-top: 31px;
        padding-bottom: 27px;
    }

    .dd-login-heading {
        margin-bottom: 18px;
    }

    .dd-login-heading h1 {
        font-size: 42px;
    }

    .dd-login-form {
        gap: 13px;
    }

    .dd-input-wrap {
        min-height: 53px;
    }

    .dd-input-wrap input {
        height: 51px;
    }

    .dd-sign-in-button {
        min-height: 56px;
    }

    .dd-login-footer {
        bottom: 15px;
    }
}

@media (max-width: 1180px) {
    .dd-login-shell {
        grid-template-columns: minmax(0, 52%) minmax(0, 48%);
    }

    .dd-login-side {
        padding-inline: 28px;
    }

    .dd-login-card {
        padding-inline: 33px;
    }

    .dd-login-footer {
        left: 28px;
        right: 28px;
    }
}

@media (max-width: 900px) {
    body {
        overflow: auto;
    }

    .dd-login-shell {
        display: block;
        min-height: 100vh;
    }

    .dd-brand-art {
        min-height: 275px;
        height: 35vh;
    }

    .dd-brand-art img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 22%;
    }

    .dd-login-side {
        min-height: 65vh;
        padding: 24px 20px 84px;
    }

    .dd-login-card {
        width: min(100%, 548px);
        border-radius: 23px;
    }

    .dd-login-footer {
        left: 22px;
        right: 22px;
        bottom: 23px;
    }
}

@media (max-width: 560px) {
    .dd-brand-art {
        min-height: 205px;
        height: 28vh;
    }

    .dd-login-side {
        align-items: flex-start;
        padding-top: 18px;
    }

    .dd-login-card {
        padding: 29px 20px 26px;
        border-radius: 19px;
    }

    .dd-login-heading {
        margin-bottom: 21px;
    }

    .dd-login-heading h1 {
        font-size: 37px;
    }

    .dd-login-heading p {
        font-size: 15px;
    }

    .dd-login-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
