:root {
    --dh-primary: #1b1f8f;
    --dh-primary-dark: #0b0f5c;
    --dh-primary-soft: #e0e7ff;

    --dh-gold: #ffd91a;
    --dh-cream: #fffdf2;
    --dh-ink: #0b102f;
    --dh-muted: #64748b;
    --dh-line: rgba(27, 31, 143, .12);
    --dh-white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(27, 31, 143, .18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(255, 217, 26, .18), transparent 28%),
        linear-gradient(135deg, #f8faff 0%, #eef2ff 48%, #fffdf2 100%);
}

.dh-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    color: var(--dh-ink);
}

.dh-auth-shell {
    width: min(1180px, 100%);
    min-height: 680px;
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(15, 23, 42, .14);
    backdrop-filter: blur(20px);
}

.dh-auth-visual {
    position: relative;
    min-height: 680px;
    padding: 48px;
    background:
        radial-gradient(circle at top right, rgba(255, 217, 26, .22), transparent 30%),
        linear-gradient(145deg, rgba(27, 31, 143, .96), rgba(8, 11, 79, .97)),
        url("../img/dh1.png");
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.dh-auth-visual::before {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    right: -130px;
    top: -130px;
    border-radius: 50%;
    background: rgba(247, 201, 72, .22);
}

.dh-auth-visual::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    left: -120px;
    bottom: -110px;
    border-radius: 50%;
    background: rgba(204, 251, 241, .18);
}

.dh-auth-pattern {
    position: absolute;
    inset: 0;
    opacity: .12;
    background-image:
        linear-gradient(30deg, rgba(255,255,255,.8) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.8) 87.5%, rgba(255,255,255,.8)),
        linear-gradient(150deg, rgba(255,255,255,.8) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.8) 87.5%, rgba(255,255,255,.8));
    background-size: 72px 126px;
}

.dh-brand-panel {
    position: relative;
    z-index: 2;
    max-width: 560px;
    color: white;
}

.dh-brand-logo {
    width: 74px;
    height: 74px;
    object-fit: contain;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
    margin-bottom: 22px;
}

.dh-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #ecfeff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    margin-bottom: 18px;
}

.dh-brand-panel h1 {
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.02;
    letter-spacing: -.045em;
    font-weight: 850;
    margin: 0 0 18px;
}

.dh-brand-panel p {
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
    line-height: 1.75;
    margin: 0;
}

.dh-auth-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 34px;
}

.dh-auth-stats div {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(16px);
}

.dh-auth-stats strong {
    display: block;
    font-size: 20px;
    font-weight: 850;
    color: #fff;
}

.dh-auth-stats span {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, .72);
}

.dh-auth-form-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.76));
}

.dh-auth-card {
    width: min(430px, 100%);
}

.dh-auth-heading {
    text-align: left;
    margin-bottom: 28px;
}

.dh-login-mark {
    width: 62px;
    height: 62px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: linear-gradient(135deg, #ecfeff, #fff7ed);
    box-shadow: 0 18px 46px rgba(15, 118, 110, .16);
    margin-bottom: 18px;
}

.dh-login-mark img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.dh-auth-kicker {
    display: inline-flex;
    color: var(--dh-primary);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.dh-auth-heading h2 {
    margin: 0;
    color: var(--dh-ink);
    font-size: 32px;
    font-weight: 850;
    letter-spacing: -.035em;
}

.dh-auth-heading p {
    margin: 10px 0 0;
    color: var(--dh-muted);
    line-height: 1.65;
}

.dh-login-form {
    display: grid;
    gap: 18px;
}

.dh-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 9px;
}

.dh-label-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.dh-label-row small {
    color: #94a3b8;
    font-size: 12px;
    margin-bottom: 9px;
}

.dh-input-icon {
    position: relative;
}

.dh-input-icon > span {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dh-primary);
    z-index: 2;
    font-size: 18px;
}

.dh-input-icon .form-control {
    height: 56px;
    border-radius: 18px;
    border: 1px solid var(--dh-line);
    background: rgba(255, 255, 255, .88);
    padding-left: 48px;
    padding-right: 48px;
    font-size: 15px;
    color: var(--dh-ink);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
    transition: .2s ease;
}

.dh-input-icon .form-control:focus {
    border-color: rgba(15, 118, 110, .55);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
    background: #fff;
}

.dh-password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 118, 110, .08);
    color: var(--dh-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dh-login-btn {
    height: 56px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--dh-primary), var(--dh-primary-dark));
    color: #fff;
    font-weight: 850;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
    box-shadow: 0 18px 42px rgba(15, 118, 110, .28);
    transition: .22s ease;
}

.dh-login-btn:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 22px 56px rgba(15, 118, 110, .34);
}

.dh-auth-footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-top: 26px;
    margin-top: 26px;
    border-top: 1px solid var(--dh-line);
    color: #94a3b8;
    font-size: 12px;
}

.alert {
    border-radius: 18px;
    border: 0;
    font-weight: 600;
}

@media (max-width: 992px) {
    .dh-auth-page {
        padding: 18px;
    }

    .dh-auth-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 28px;
    }

    .dh-auth-visual {
        min-height: auto;
        padding: 34px;
        align-items: flex-start;
    }

    .dh-brand-panel h1 {
        font-size: 34px;
    }

    .dh-auth-form-wrap {
        padding: 34px;
    }

    .dh-login-mark {
        display: flex;
    }
}

@media (max-width: 576px) {
    .dh-auth-page {
        padding: 0;
        align-items: stretch;
    }

    .dh-auth-shell {
        border-radius: 0;
        min-height: 100vh;
    }

    .dh-auth-visual {
        padding: 28px 22px;
    }

    .dh-brand-logo {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .dh-brand-panel h1 {
        font-size: 28px;
    }

    .dh-brand-panel p {
        font-size: 14px;
    }

    .dh-auth-stats {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 22px;
    }

    .dh-auth-stats div {
        padding: 14px;
    }

    .dh-auth-form-wrap {
        padding: 28px 22px 34px;
    }

    .dh-auth-heading h2 {
        font-size: 26px;
    }

    .dh-auth-footer {
        flex-direction: column;
        gap: 6px;
    }
}

.dh-auth-visual::before {
    background: rgba(255, 217, 26, .24);
}

.dh-auth-visual::after {
    background: rgba(224, 231, 255, .20);
}

.dh-login-mark {
    background: linear-gradient(135deg, #eef2ff, #fff7b0);
    box-shadow: 0 18px 46px rgba(27, 31, 143, .16);
}

.dh-auth-kicker,
.dh-input-icon > span,
.dh-password-toggle {
    color: var(--dh-primary);
}

.dh-input-icon .form-control:focus {
    border-color: rgba(27, 31, 143, .55);
    box-shadow: 0 0 0 4px rgba(27, 31, 143, .12);
}

.dh-login-btn {
    background: linear-gradient(135deg, var(--dh-primary), var(--dh-primary-dark));
    box-shadow: 0 18px 42px rgba(27, 31, 143, .28);
}

.dh-login-btn:hover {
    box-shadow: 0 22px 56px rgba(27, 31, 143, .34);
}