:root {
    --dct-auth-navy: #071b38;
    --dct-auth-navy-soft: #0b2d5c;
    --dct-auth-burgundy: #5a1014;
    --dct-auth-burgundy-dark: #350a0d;
    --dct-auth-gold: #c5a45a;
    --dct-auth-ivory: #faf7f0;
    --dct-auth-ink: #101827;
    --dct-auth-muted: #64748b;
    --dct-auth-border: #e2e8f0;
}

.dct-auth-page {
    min-height: calc(100vh - 177px);
    display: grid;
    place-items: center;
    padding: 48px 20px;
    background:
        radial-gradient(circle at 8% 15%, rgba(197, 164, 90, .18), transparent 27%),
        radial-gradient(circle at 92% 88%, rgba(90, 16, 20, .11), transparent 28%),
        linear-gradient(145deg, #f8fafc 0%, var(--dct-auth-ivory) 100%);
}

.dct-auth-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
    overflow: hidden;
    border: 1px solid rgba(7, 27, 56, .08);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(7, 27, 56, .16);
}

.dct-auth-brand-panel {
    position: relative;
    isolation: isolate;
    min-height: 650px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 84% 15%, rgba(197, 164, 90, .28), transparent 23%),
        linear-gradient(145deg, var(--dct-auth-navy) 0%, var(--dct-auth-navy-soft) 55%, var(--dct-auth-burgundy-dark) 130%);
}

.dct-auth-brand-panel::before,
.dct-auth-brand-panel::after {
    position: absolute;
    z-index: -1;
    content: "";
    border-radius: 999px;
    pointer-events: none;
}

.dct-auth-brand-panel::before {
    width: 300px;
    height: 300px;
    right: -125px;
    bottom: -90px;
    border: 54px solid rgba(197, 164, 90, .13);
}

.dct-auth-brand-panel::after {
    width: 210px;
    height: 210px;
    left: -90px;
    top: 205px;
    border: 1px solid rgba(255, 255, 255, .12);
}

.dct-auth-brand-content {
    min-height: 650px;
    display: flex;
    flex-direction: column;
    padding: 44px;
}

.dct-auth-logo-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.dct-auth-logo-frame {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    flex: none;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 19px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.dct-auth-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.dct-auth-wordmark {
    display: grid;
    gap: 2px;
}

.dct-auth-wordmark strong {
    font-size: 1.15rem;
    letter-spacing: -.02em;
}

.dct-auth-wordmark span {
    color: rgba(255, 255, 255, .68);
    font-size: .77rem;
    font-weight: 600;
}

.dct-auth-brand-copy {
    max-width: 520px;
    margin: auto 0;
    padding: 70px 0;
}

.dct-auth-eyebrow {
    display: inline-block;
    margin-bottom: 13px;
    color: var(--dct-auth-gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.dct-auth-brand-copy h1 {
    max-width: 500px;
    margin: 0;
    font-size: clamp(2.15rem, 4vw, 3.7rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.dct-auth-brand-copy p {
    max-width: 500px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: 1rem;
    line-height: 1.75;
}

.dct-auth-brand-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .62);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dct-auth-meta-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dct-auth-gold);
}

.dct-auth-form-panel {
    display: grid;
    place-items: center;
    padding: 56px 54px;
    background:
        linear-gradient(rgba(255, 255, 255, .96), rgba(255, 255, 255, .96)),
        radial-gradient(circle at top right, rgba(197, 164, 90, .18), transparent 35%);
}

.dct-auth-form-wrap {
    width: min(420px, 100%);
}

.dct-auth-mobile-logo {
    display: none;
}

.dct-auth-form-wrap h2 {
    margin: 0;
    color: var(--dct-auth-navy);
    font-size: clamp(1.85rem, 3vw, 2.45rem);
    line-height: 1.1;
    letter-spacing: -.035em;
}

.dct-auth-intro {
    margin: 12px 0 28px;
    color: var(--dct-auth-muted);
    font-size: .95rem;
    line-height: 1.6;
}

.dct-auth-form {
    display: grid;
    gap: 20px;
}

.dct-auth-field {
    display: grid;
    gap: 8px;
}

.dct-auth-field label,
.dct-auth-label-row label {
    color: var(--dct-auth-navy);
    font-size: .84rem;
    font-weight: 800;
}

.dct-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.dct-auth-field input[type="email"],
.dct-auth-field input[type="text"],
.dct-auth-field input[type="password"] {
    width: 100%;
    height: 52px;
    border: 1px solid #cbd5e1;
    border-radius: 13px;
    outline: none;
    background: #fff;
    padding: 0 15px;
    color: var(--dct-auth-ink);
    font: inherit;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.dct-auth-field input::placeholder {
    color: #94a3b8;
}

.dct-auth-field input:focus {
    border-color: var(--dct-auth-gold);
    box-shadow: 0 0 0 4px rgba(197, 164, 90, .17);
}

.dct-auth-password-wrap {
    position: relative;
}

.dct-auth-password-wrap input {
    padding-right: 72px !important;
}

.dct-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    background: transparent;
    padding: 8px 10px;
    color: var(--dct-auth-burgundy);
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
}

.dct-auth-password-toggle:hover {
    background: var(--dct-auth-ivory);
}

.dct-auth-inline-link,
.dct-auth-register a {
    color: var(--dct-auth-burgundy);
    font-weight: 800;
    text-decoration: none;
}

.dct-auth-inline-link {
    font-size: .78rem;
}

.dct-auth-inline-link:hover,
.dct-auth-register a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.dct-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    color: #475569;
    font-size: .84rem;
    font-weight: 600;
    cursor: pointer;
}

.dct-auth-remember input {
    width: 17px;
    height: 17px;
    accent-color: var(--dct-auth-burgundy);
}

.dct-auth-submit {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--dct-auth-burgundy), var(--dct-auth-burgundy-dark));
    color: #fff;
    font-size: .94rem;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 12px 24px rgba(90, 16, 20, .18);
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        filter 160ms ease;
}

.dct-auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(90, 16, 20, .24);
    filter: brightness(1.05);
}

.dct-auth-submit:focus-visible,
.dct-auth-password-toggle:focus-visible,
.dct-auth-inline-link:focus-visible,
.dct-auth-register a:focus-visible {
    outline: 3px solid rgba(197, 164, 90, .48);
    outline-offset: 3px;
}

.dct-auth-validation-summary {
    border-radius: 12px;
    background: #fef2f2;
    color: #991b1b;
    font-size: .83rem;
    font-weight: 650;
}

.dct-auth-validation-summary:not(:empty) {
    border: 1px solid #fecaca;
    padding: 12px 14px;
}

.dct-auth-validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.dct-auth-validation {
    min-height: 1rem;
    color: #b91c1c;
    font-size: .76rem;
    font-weight: 650;
}

.input-validation-error {
    border-color: #ef4444 !important;
}

.dct-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 26px 0 20px;
}

.dct-auth-divider::before,
.dct-auth-divider::after {
    height: 1px;
    flex: 1;
    content: "";
    background: var(--dct-auth-border);
}

.dct-auth-divider span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--dct-auth-gold);
}

.dct-auth-register,
.dct-auth-footnote {
    margin: 0;
    text-align: center;
}

.dct-auth-register {
    color: #64748b;
    font-size: .86rem;
}

.dct-auth-footnote {
    margin-top: 22px;
    color: #94a3b8;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .dct-auth-page {
        padding: 28px 16px;
    }

    .dct-auth-shell {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .dct-auth-brand-panel {
        min-height: auto;
    }

    .dct-auth-brand-content {
        min-height: auto;
        padding: 28px 30px;
    }

    .dct-auth-brand-copy {
        margin: 34px 0 12px;
        padding: 0;
    }

    .dct-auth-brand-copy h1 {
        font-size: 2rem;
    }

    .dct-auth-brand-copy p {
        margin-top: 14px;
    }

    .dct-auth-brand-meta {
        margin-top: 26px;
    }

    .dct-auth-form-panel {
        padding: 42px 34px;
    }
}

@media (max-width: 600px) {
    .dct-auth-page {
        min-height: auto;
        place-items: start center;
        padding: 18px 12px 34px;
    }

    .dct-auth-shell {
        border-radius: 22px;
    }

    .dct-auth-brand-panel {
        display: none;
    }

    .dct-auth-form-panel {
        padding: 34px 22px 30px;
    }

    .dct-auth-mobile-logo {
        width: 76px;
        height: 76px;
        display: grid;
        place-items: center;
        margin-bottom: 25px;
        border: 1px solid rgba(7, 27, 56, .08);
        border-radius: 20px;
        background: var(--dct-auth-ivory);
    }

    .dct-auth-mobile-logo img {
        width: 64px;
        height: 64px;
        object-fit: contain;
    }

    .dct-auth-label-row {
        align-items: baseline;
    }

    .dct-auth-footnote {
        line-height: 1.6;
    }
}
