.dmp-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
    background: #f3eee4;
    color: #1c1915;
    font-family: "Plus Jakarta Sans", sans-serif;
    position: fixed;
    inset: 0;
}

.dmp-auth *,
.dmp-auth *::before,
.dmp-auth *::after {
    box-sizing: border-box;
}

.dmp-auth a {
    text-decoration: none;
}

.dmp-auth-brand {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 560px at 112% -6%, rgba(3, 47, 94, 0.85), transparent 58%),
        radial-gradient(640px 420px at 78% 18%, rgba(4, 22, 47, 0.7), transparent 52%),
        linear-gradient(165deg, #04162f 0%, #020611 46%, #01040b 100%);
    color: #f4ede3;
    padding: 48px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.dmp-auth-brand::after {
    content: "";
    position: absolute;
    inset: auto -40px -80px auto;
    width: 280px;
    height: 280px;
    border: 40px solid rgba(3, 47, 94, 0.28);
    border-radius: 40% 60% 55% 45%;
    transform: rotate(18deg);
    pointer-events: none;
}

.dmp-auth-logo {
    display: block;
    width: auto;
    object-fit: contain;
    object-position: left center;
}

.dmp-auth-logo-light {
    height: 52px;
    max-width: min(100%, 340px);
    margin-bottom: 8px;
    mix-blend-mode: screen;
}

.dmp-auth-wordmark {
    display: inline-block;
    color: #f4ede3;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin-bottom: 8px;
}

.dmp-auth-wordmark:hover {
    color: #fffbf6;
}

.dmp-auth-brand-title {
    margin: 28px 0 12px;
    max-width: 480px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
    color: #f4ede3;
}

.dmp-brand-name {
    white-space: nowrap;
}

.dmp-auth-tagline {
    margin-top: 12px;
    max-width: 420px;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(244, 237, 227, 0.72);
}

.dmp-auth-points {
    display: grid;
    gap: 10px;
    margin-top: 36px;
}

.dmp-auth-point {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(244, 237, 227, 0.82);
}

.dmp-auth-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px 6px 2px 6px;
    background: #10b981;
    flex-shrink: 0;
}

.dmp-auth-foot {
    font-family: "IBM Plex Mono", monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(148, 180, 220, 0.55);
}

.dmp-auth-panel {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 28px;
    overflow-y: auto;
}

.dmp-auth-card {
    width: 100%;
    max-width: 400px;
    margin-block: auto;
}

.dmp-auth-panel-logo {
    display: block;
    width: auto;
    height: 28px;
    max-width: 200px;
    margin-bottom: 28px;
    object-fit: contain;
    object-position: left center;
}

.dmp-auth-panel-wordmark {
    display: inline-block;
    color: #1c1915;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 28px;
}

.dmp-auth-panel-wordmark:hover {
    color: #3d9228;
}

.dmp-auth-card h1 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.045em;
    margin: 0 0 8px;
    color: #1c1915;
}

.dmp-auth-lede {
    font-size: 14px;
    color: rgba(28, 25, 21, 0.55);
    margin: 0 0 28px;
    line-height: 1.45;
}

.dmp-auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dmp-auth-form label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(28, 25, 21, 0.48);
    margin-bottom: 6px;
}

.dmp-auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.dmp-auth-label-row a {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: #3d9228;
}

.dmp-auth-label-row a:hover {
    color: #2f7a1e;
}

.dmp-auth-form input,
.dmp-auth-form select {
    width: 100%;
    padding: 13px 15px;
    background: #fffbf6;
    border: 1px solid rgba(45, 32, 16, 0.14);
    border-radius: 12px;
    color: #1c1915;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: none;
    appearance: none;
}

.dmp-auth-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231c1915' fill-opacity='0.45' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.dmp-auth-form input:focus,
.dmp-auth-form select:focus {
    border-color: #48a830;
    box-shadow: 0 0 0 4px rgba(72, 168, 48, 0.18);
}

.dmp-auth-form input.is-invalid,
.dmp-auth-form select.is-invalid {
    border-color: #c23b2e;
}

.dmp-auth-form input.is-invalid:focus,
.dmp-auth-form select.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(194, 59, 46, 0.12);
}

.dmp-auth-phone {
    display: flex;
    width: 100%;
}

.dmp-auth-phone span {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: #efe8dc;
    border: 1px solid rgba(45, 32, 16, 0.14);
    border-right: 0;
    border-radius: 12px 0 0 12px;
    color: rgba(28, 25, 21, 0.65);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.dmp-auth-phone input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    border-radius: 0 12px 12px 0;
}

.dmp-auth-password {
    position: relative;
}

.dmp-auth-password input {
    padding-right: 46px;
}

.dmp-auth-password input::-ms-reveal,
.dmp-auth-password input::-ms-clear,
.dmp-auth-password input::-webkit-credentials-auto-fill-button,
.dmp-auth-password input::-webkit-contacts-auto-fill-button,
.dmp-auth-password input::-webkit-strong-password-auto-fill-button,
.dmp-auth-password input::-webkit-textfield-decoration-container {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

.dmp-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(28, 25, 21, 0.45);
    cursor: pointer;
}

.dmp-auth-password-toggle .dmp-auth-eye-off,
.dmp-auth-password-toggle.is-visible .dmp-auth-eye,
.dmp-auth-password-toggle svg[hidden] {
    display: none !important;
}

.dmp-auth-password-toggle.is-visible .dmp-auth-eye-off {
    display: block !important;
}

.dmp-auth-password-toggle:hover,
.dmp-auth-password-toggle:focus-visible {
    color: #1c1915;
}

.dmp-auth-password-toggle:focus-visible {
    outline: 2px solid #48a830;
    outline-offset: 2px;
    border-radius: 8px;
}

.dmp-auth-form .dmp-auth-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(28, 25, 21, 0.7);
    margin-bottom: 0;
}

.dmp-auth-check input {
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: 4px;
    accent-color: #48a830;
}

.dmp-auth-error,
.dmp-auth-success {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    text-align: center;
    margin-bottom: 4px;
}

.dmp-auth-error {
    background: rgba(194, 59, 46, 0.08);
    border: 1px solid rgba(194, 59, 46, 0.2);
    color: #c23b2e;
}

.dmp-auth-success {
    background: rgba(26, 46, 40, 0.08);
    border: 1px solid rgba(26, 46, 40, 0.18);
    color: #1a2e28;
}

.dmp-auth-field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #c23b2e;
}

.dmp-auth-submit {
    width: 100%;
    margin-top: 6px;
    padding: 13px 24px;
    background: #031832;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 18px rgba(3, 24, 50, 0.35);
    transition: transform 0.13s, filter 0.13s, background 0.13s, opacity 0.13s;
}

.dmp-auth-submit:hover {
    background: #0a2a4a;
    transform: translateY(-1px);
    color: #fff;
}

.dmp-auth-links {
    margin: 8px 0 0;
    text-align: center;
    font-size: 13px;
    color: rgba(28, 25, 21, 0.55);
}

.dmp-auth-links a {
    color: #3d9228;
    font-weight: 600;
}

.dmp-auth-links a:hover,
.dmp-auth-label-row a:hover {
    color: #2f7a1e;
    text-decoration: underline;
}

.dmp-auth-inline-form {
    display: inline;
}

.dmp-auth-inline {
    background: none;
    border: 0;
    padding: 0;
    color: #3d9228;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.dmp-auth-inline:hover {
    color: #2f7a1e;
    text-decoration: underline;
}

.dmp-auth-home {
    display: block;
    margin-top: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(28, 25, 21, 0.42);
}

.dmp-auth-home:hover {
    color: #3d9228;
}

.dmp-auth-hidden {
    display: none !important;
}

@media (max-width: 860px) {
    .dmp-auth {
        grid-template-columns: 1fr;
        overflow: auto;
        position: relative;
        min-height: 100vh;
    }

    .dmp-auth-brand {
        padding: 28px 24px 22px;
        min-height: auto;
    }

    .dmp-auth-logo-light,
    .dmp-auth-wordmark {
        height: 36px;
        max-width: 240px;
        font-size: 22px;
    }

    .dmp-auth-brand-title {
        margin-top: 16px;
        font-size: 24px;
    }

    .dmp-auth-foot,
    .dmp-auth-panel-wordmark,
    .dmp-auth-points {
        display: none;
    }

    .dmp-auth-panel {
        padding: 28px 20px 40px;
        align-items: flex-start;
    }
}
