
:root {
    --dpauth-bg: #111816;
    --dpauth-green: #254D43;
    --dpauth-gold: #C39A63;
    --dpauth-cream: #EEE7DB;
    --dpauth-beige: #DAD0BF;
    --dpauth-surface: #F7F3EB;
    --dpauth-ink: #1B201E;
    --dpauth-muted: #70756F;
    --dpauth-line: rgba(17,24,22,.11);
}

.dpauth-page,
.dpauth-page * {
    box-sizing: border-box;
}

.dpauth-page {
    width: 100%;
    min-height: 720px;
    background: var(--dpauth-cream);
    color: var(--dpauth-ink);
    font-family: inherit;
}

.dpauth-page a {
    color: inherit;
    text-decoration: none;
}

.dpauth-page button,
.dpauth-page input {
    font: inherit;
}

.dpauth-shell {
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
}

.dpauth-side {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 64px;
    background:
        radial-gradient(circle at 50% 30%, rgba(37,77,67,.68), transparent 35%),
        var(--dpauth-bg);
    color: var(--dpauth-cream);
}

.dpauth-side__inner {
    position: relative;
    z-index: 2;
    width: min(100%, 560px);
}

.dpauth-eyebrow {
    color: var(--dpauth-gold);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .18em;
}

.dpauth-side h1 {
    margin: 14px 0 22px;
    color: var(--dpauth-cream);
    font-size: clamp(42px,5vw,72px);
    line-height: 1.06;
    letter-spacing: -.045em;
}

.dpauth-side p {
    max-width: 530px;
    margin: 0;
    color: rgba(238,231,219,.62);
    font-size: 13px;
    line-height: 2;
}

.dpauth-benefits {
    margin-top: 52px;
    border-top: 1px solid rgba(195,154,99,.35);
}

.dpauth-benefits > div {
    min-height: 60px;
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(238,231,219,.09);
}

.dpauth-benefits span {
    color: var(--dpauth-gold);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
}

.dpauth-benefits strong {
    color: var(--dpauth-beige);
    font-size: 11px;
    font-weight: 600;
}

.dpauth-pattern {
    position: absolute;
    width: 480px;
    aspect-ratio: 1;
    border: 1px solid rgba(195,154,99,.07);
    border-radius: 57% 43% 65% 35% / 43% 61% 39% 57%;
    pointer-events: none;
}

.dpauth-pattern::before,
.dpauth-pattern::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(195,154,99,.055);
    border-radius: inherit;
}

.dpauth-pattern::before { inset: 12%; }
.dpauth-pattern::after { inset: 27%; }

.dpauth-pattern--one {
    top: -250px;
    right: -150px;
    transform: rotate(30deg);
}

.dpauth-pattern--two {
    bottom: -360px;
    left: -120px;
    transform: rotate(205deg);
}

.dpauth-panel {
    display: grid;
    place-items: center;
    padding: 64px 56px;
    background: var(--dpauth-surface);
}

.dpauth-panel__inner {
    width: min(100%, 560px);
}

.dpauth-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--dpauth-line);
}

.dpauth-tab {
    position: relative;
    min-height: 48px;
    padding: 0 8px !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--dpauth-muted) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer;
}

.dpauth-tab::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: var(--dpauth-gold);
    transform: scaleX(0);
    transition: transform .25s ease;
}

.dpauth-tab.is-active {
    color: var(--dpauth-green) !important;
}

.dpauth-tab.is-active::after {
    transform: scaleX(1);
}

.dpauth-form-wrap {
    display: none;
}

.dpauth-form-wrap.is-active {
    display: block;
}

.dpauth-form-head {
    margin-bottom: 26px;
}

.dpauth-form-head > span {
    color: var(--dpauth-gold);
    font-size: 9px;
    font-weight: 750;
}

.dpauth-form-head h2 {
    margin: 6px 0 0;
    color: var(--dpauth-ink);
    font-size: clamp(26px,3vw,38px);
    line-height: 1.25;
}

.dpauth-notice {
    margin-bottom: 22px;
    padding: 13px 15px;
    border: 1px solid var(--dpauth-line);
    border-radius: 3px 12px 3px 3px;
    background: rgba(255,255,255,.55);
    font-size: 10px;
    line-height: 1.8;
}

.dpauth-notice.is-error {
    border-right: 2px solid #9B4338;
    color: #7B3A32;
}

.dpauth-notice.is-success {
    border-right: 2px solid var(--dpauth-green);
    color: var(--dpauth-green);
}

.dpauth-form {
    display: grid;
    gap: 16px;
}

.dpauth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.dpauth-field {
    display: grid;
    gap: 7px;
}

.dpauth-field > span {
    color: var(--dpauth-muted);
    font-size: 9px;
}

.dpauth-field > input,
.dpauth-password input {
    width: 100%;
    height: 48px;
    padding: 0 13px !important;
    border: 1px solid var(--dpauth-line) !important;
    border-radius: 3px 13px 3px 3px !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: rgba(255,255,255,.72) !important;
    color: var(--dpauth-ink) !important;
    font-size: 11px;
    transition: border-color .2s ease, background .2s ease;
}

.dpauth-field > input:focus,
.dpauth-password input:focus {
    border-color: rgba(37,77,67,.5) !important;
    background: #fff !important;
}

.dpauth-password {
    position: relative;
}

.dpauth-password input {
    padding-left: 64px !important;
}

.dpauth-password-toggle {
    position: absolute;
    top: 50%;
    left: 10px;
    min-height: 30px;
    padding: 0 8px !important;
    transform: translateY(-50%);
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--dpauth-green) !important;
    font-size: 8px !important;
    cursor: pointer;
}

.dpauth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dpauth-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dpauth-muted);
    font-size: 9px;
    cursor: pointer;
}

.dpauth-check input {
    position: absolute;
    opacity: 0;
}

.dpauth-check > span {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    border: 1px solid rgba(37,77,67,.25);
    border-radius: 3px;
    background: #fff;
}

.dpauth-check input:checked + span {
    border-color: var(--dpauth-green);
    background: var(--dpauth-green);
}

.dpauth-check input:checked + span::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 3px;
    top: 4px;
    left: 4px;
    border-left: 1.5px solid var(--dpauth-cream);
    border-bottom: 1.5px solid var(--dpauth-cream);
    transform: rotate(-45deg);
}

.dpauth-check--terms {
    margin-top: 2px;
    line-height: 1.7;
}

.dpauth-lost {
    color: var(--dpauth-green) !important;
    font-size: 9px;
    border-bottom: 1px solid rgba(195,154,99,.6);
}

.dpauth-submit {
    min-height: 52px;
    margin-top: 5px;
    padding: 0 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0 !important;
    border-radius: 3px 15px 3px 3px !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: var(--dpauth-green) !important;
    color: var(--dpauth-cream) !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.dpauth-submit:hover {
    transform: translateY(-1px);
    background: var(--dpauth-bg) !important;
}

/* Logged in */
.dpauth-page--logged {
    min-height: 620px;
    display: grid;
    place-items: center;
    padding: 70px 20px;
    background:
        radial-gradient(circle at 50% 10%, rgba(37,77,67,.08), transparent 30%),
        var(--dpauth-cream);
}

.dpauth-logged {
    width: min(100%, 760px);
    padding: 64px 42px;
    text-align: center;
    border-top: 1px solid rgba(195,154,99,.55);
}

.dpauth-logged__mark {
    width: 86px;
    height: 86px;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(195,154,99,.6);
    border-radius: 50%;
    color: var(--dpauth-green);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
}

.dpauth-logged h1 {
    margin: 8px 0 13px;
    font-size: clamp(30px,4vw,48px);
}

.dpauth-logged p {
    margin: 0;
    color: var(--dpauth-muted);
    font-size: 12px;
    line-height: 1.9;
}

.dpauth-account-actions {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 8px;
}

.dpauth-account-actions a {
    min-height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--dpauth-line);
    border-radius: 3px 13px 3px 3px;
    color: var(--dpauth-green);
    font-size: 10px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.dpauth-account-actions a:hover {
    border-color: var(--dpauth-green);
    background: var(--dpauth-green);
    color: var(--dpauth-cream);
}

.dpauth-account-actions a.is-logout:hover {
    border-color: #8d5148;
    background: #8d5148;
}

@media (max-width: 960px) {
    .dpauth-shell {
        grid-template-columns: 1fr 1.08fr;
    }

    .dpauth-side {
        padding: 48px 34px;
    }

    .dpauth-panel {
        padding: 48px 34px;
    }
}

@media (max-width: 820px) {
    .dpauth-page,
    .dpauth-shell {
        min-height: auto;
    }

    .dpauth-shell {
        grid-template-columns: 1fr;
    }

    .dpauth-side {
        min-height: 400px;
        padding: 58px 30px;
    }

    .dpauth-side h1 {
        font-size: clamp(38px,8vw,58px);
    }

    .dpauth-benefits {
        margin-top: 38px;
    }

    .dpauth-panel {
        padding: 50px 30px 70px;
    }

    .dpauth-account-actions {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 520px) {
    .dpauth-side {
        min-height: 360px;
        padding: 42px 22px;
    }

    .dpauth-panel {
        padding: 38px 18px 56px;
    }

    .dpauth-grid-2 {
        grid-template-columns: 1fr;
    }

    .dpauth-form-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .dpauth-logged {
        padding: 48px 12px;
    }

    .dpauth-account-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dpauth-page *,
    .dpauth-page *::before,
    .dpauth-page *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
