/*
 * Pandora Partner Configurator — закрытый вход.
 * Отдельный файл, не затрагивает основной интерфейс подбора оборудования.
 */

:root {
    --dd-auth-background: #0b1018;
    --dd-auth-panel: rgba(15, 21, 31, 0.9);
    --dd-auth-white: #f5f7fa;
    --dd-auth-muted: #96a2b4;
    --dd-auth-accent: #df2948;
    --dd-auth-border: rgba(218, 228, 243, 0.13);
    --dd-auth-radius: 18px;
}

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

html {
    min-height: 100%;
}

body.dd-portal-auth {
    position: relative;
    display: block;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    background: var(--dd-auth-background);
    color: var(--dd-auth-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Manrope", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.dd-portal-auth a {
    color: inherit;
    text-decoration: none;
}

.dd-portal-auth button,
.dd-portal-auth input {
    font: inherit;
}

.dd-portal-auth button,
.dd-portal-auth a,
.dd-portal-auth input {
    -webkit-tap-highlight-color: transparent;
}

.dd-portal-auth button:focus-visible,
.dd-portal-auth input:focus-visible,
.dd-portal-auth a:focus-visible {
    outline: 2px solid #ff7b92;
    outline-offset: 3px;
}

/* Полноэкранная многослойная техно-графика, без внешних изображений. */
.dd-auth-background {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 76% at 8% 106%, rgba(141, 29, 54, 0.3), transparent 75%),
        radial-gradient(ellipse 70% 62% at 77% -20%, rgba(30, 56, 96, 0.46), transparent 75%),
        linear-gradient(123deg, #101825 0%, #0a111c 49%, #080d14 100%);
}

.dd-auth-background__grid {
    position: absolute;
    inset: -25%;
    opacity: 0.36;
    background-image:
        linear-gradient(rgba(141, 160, 190, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(141, 160, 190, 0.09) 1px, transparent 1px);
    background-size: 72px 72px;
    transform: perspective(900px) rotateX(26deg) rotateZ(-8deg) scale(1.1);
    mask-image: linear-gradient(to right, #000 3%, transparent 95%);
}

.dd-auth-background__glow {
    position: absolute;
    width: 950px;
    height: 950px;
    left: -480px;
    top: 22%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(224, 34, 73, 0.2), transparent 65%);
    filter: blur(25px);
}

.dd-auth-background__beams {
    position: absolute;
    inset: 0;
    opacity: 0.56;
    background:
        linear-gradient(118deg, transparent 34%, rgba(176, 42, 67, 0.15) 34.05%, transparent 34.14%),
        linear-gradient(118deg, transparent 46%, rgba(132, 156, 184, 0.08) 46.05%, transparent 46.14%),
        linear-gradient(118deg, transparent 71%, rgba(132, 156, 184, 0.09) 71.05%, transparent 71.15%);
}

.dd-auth-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
    align-items: center;
    column-gap: clamp(48px, 7vw, 130px);
    width: min(1480px, 100%);
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: clamp(28px, 4.5vw, 64px) clamp(28px, 5vw, 80px);
}

.dd-auth-story {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    justify-content: space-between;
    min-width: 0;
    padding: 5px 0 12px;
}

.dd-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
}

.dd-auth-brand__mark {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    transform: skew(-16deg);
}

.dd-auth-brand__bar {
    display: block;
    width: 8px;
    height: 28px;
    border-radius: 1px;
    background: var(--dd-auth-accent);
}

.dd-auth-brand__bar:first-child {
    height: 19px;
}

.dd-auth-brand__bar:last-child {
    height: 37px;
}

.dd-auth-brand__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dd-auth-brand__name {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: 0.17em;
    line-height: 1;
}

.dd-auth-brand__caption {
    color: #a1adbf;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3em;
}

.dd-auth-story__main {
    max-width: 680px;
    margin: 48px 0;
}

.dd-auth-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: #cbd4e2;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.2em;
}

.dd-auth-eyebrow__line {
    width: 24px;
    height: 2px;
    background: var(--dd-auth-accent);
}

.dd-auth-story h1 {
    max-width: 750px;
    margin: 0 0 23px;
    font-size: clamp(42px, 4.4vw, 74px);
    font-weight: 750;
    letter-spacing: -0.058em;
    line-height: 1.06;
}

.dd-auth-story h1 span {
    display: block;
    color: #abb9cc;
}

.dd-auth-story__main > p {
    max-width: 520px;
    margin: 0;
    color: #a4b0c2;
    font-size: clamp(15px, 1.17vw, 17px);
    line-height: 1.8;
}

.dd-auth-story__divider {
    width: min(480px, 100%);
    height: 1px;
    margin: clamp(30px, 4vw, 54px) 0 27px;
    background: linear-gradient(90deg, rgba(205, 220, 243, 0.27), transparent);
}

.dd-auth-story__details {
    display: flex;
    flex-direction: column;
    gap: 13px;
    color: #dce4ef;
    font-size: 13px;
}

.dd-auth-story__details > div {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dd-auth-story__number {
    color: #f46e86;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.dd-auth-story__bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7d8ca3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.dd-auth-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e94962;
    box-shadow: 0 0 0 4px rgba(232, 45, 78, 0.13);
}

.dd-auth-panel {
    width: 100%;
    max-width: 510px;
    justify-self: end;
}

.dd-auth-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(29px, 3.45vw, 48px);
    border: 1px solid rgba(225, 236, 249, 0.14);
    border-radius: var(--dd-auth-radius);
    background: var(--dd-auth-panel);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.dd-auth-card::before {
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    width: 110px;
    height: 2px;
    background: var(--dd-auth-accent);
    content: "";
}

.dd-auth-card__top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: clamp(42px, 5vw, 65px);
    color: #7e91ab;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.16em;
}

.dd-auth-card__eyebrow {
    color: #ed8597;
}

.dd-auth-card__header h2 {
    margin: 0;
    color: #f7f9fd;
    font-size: clamp(29px, 3vw, 36px);
    font-weight: 740;
    letter-spacing: -0.045em;
    line-height: 1.18;
}

.dd-auth-card__header p {
    max-width: 360px;
    margin: 15px 0 30px;
    color: var(--dd-auth-muted);
    font-size: 14px;
    line-height: 1.7;
}

.dd-auth-form {
    display: flex;
    flex-direction: column;
    gap: 21px;
}

.dd-auth-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.dd-auth-field label {
    color: #e0e7f1;
    font-size: 12px;
    font-weight: 650;
}

.dd-auth-field__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dd-auth-field__heading a {
    color: #f08ba0;
    font-size: 12px;
    transition: color 0.15s ease;
}

.dd-auth-field__heading a:hover,
.dd-auth-back:hover {
    color: #ffffff;
}

.dd-auth-field input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #334153;
    border-radius: 9px;
    outline: none;
    background: #141e2b;
    color: #f4f7fd;
    font-size: 14px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.dd-auth-field input::placeholder {
    color: #76869a;
    opacity: 1;
}

.dd-auth-field input:hover {
    border-color: #52657d;
}

.dd-auth-field input:focus {
    border-color: #d94c68;
    background: #192331;
    box-shadow: 0 0 0 4px rgba(219, 59, 89, 0.14);
}

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

.dd-auth-password input {
    padding-right: 74px;
}

.dd-auth-password__toggle {
    position: absolute;
    top: 0;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 49px;
    height: 52px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #96a5b9;
    cursor: pointer;
}

.dd-auth-password__toggle:hover {
    color: #ffffff;
}

.dd-auth-toggle-label {
    font-size: 11px;
}

.dd-auth-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #b2bfd1;
    font-size: 12px;
    cursor: pointer;
}

.dd-auth-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--dd-auth-accent);
    cursor: pointer;
}

.dd-auth-submit,
.dd-auth-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 55px;
    margin-top: 5px;
    padding: 14px 21px;
    border: 1px solid #e24160;
    border-radius: 9px;
    background: linear-gradient(120deg, #e42f51 0%, #c91f43 100%);
    box-shadow: 0 10px 27px rgba(214, 33, 66, 0.17);
    color: #ffffff;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.dd-auth-submit:hover,
.dd-auth-primary-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(214, 33, 66, 0.25);
    filter: brightness(1.06);
}

.dd-auth-submit:active {
    transform: translateY(0);
}

.dd-auth-submit.is-submitting {
    cursor: progress;
    opacity: 0.79;
}

.dd-auth-back {
    display: inline-flex;
    width: fit-content;
    margin-top: 24px;
    color: #ed8a9c;
    font-size: 13px;
    transition: color 0.16s ease;
}

.dd-auth-notice {
    margin: 0 0 22px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.6;
}

.dd-auth-notice--error {
    border-color: rgba(243, 100, 120, 0.33);
    background: rgba(204, 39, 68, 0.13);
    color: #ffc5ce;
}

.dd-auth-notice--success {
    border-color: rgba(100, 196, 156, 0.3);
    background: rgba(29, 105, 86, 0.13);
    color: #a7e9d0;
}

.dd-auth-card__foot {
    margin-top: 42px;
    color: #8491a2;
    font-size: 11px;
    line-height: 1.6;
}

.dd-auth-card__foot-line {
    display: block;
    width: 100%;
    height: 1px;
    margin-bottom: 19px;
    background: var(--dd-auth-border);
}

.dd-auth-copyright {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 25px 5px 0;
    color: #77869a;
    font-size: 10px;
}

.dd-auth-copyright span:last-child {
    color: #6d7c91;
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.08em;
}

@media (max-width: 1120px) {
    .dd-auth-layout {
        grid-template-columns: minmax(0, 1fr) minmax(370px, 0.95fr);
        column-gap: 45px;
    }

    .dd-auth-story h1 {
        font-size: clamp(40px, 4.7vw, 58px);
    }

    .dd-auth-story__details {
        font-size: 12px;
    }
}

@media (max-width: 850px) {
    .dd-auth-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
        max-width: 590px;
        padding: 30px 22px 36px;
    }

    .dd-auth-story {
        gap: 20px;
    }

    .dd-auth-story__main,
    .dd-auth-story__bottom {
        display: none;
    }

    .dd-auth-panel {
        justify-self: center;
        max-width: 100%;
    }

    .dd-auth-card {
        padding: clamp(27px, 6vw, 43px);
    }

    .dd-auth-card__top {
        margin-bottom: 37px;
    }

    .dd-auth-background__grid {
        opacity: 0.2;
    }
}

@media (max-width: 440px) {
    .dd-auth-layout {
        padding: 23px 14px 30px;
        gap: 29px;
    }

    .dd-auth-brand__name {
        font-size: 22px;
    }

    .dd-auth-brand__caption {
        font-size: 8px;
    }

    .dd-auth-brand__mark {
        width: 38px;
        height: 40px;
    }

    .dd-auth-card {
        padding: 29px 24px;
        border-radius: 13px;
    }

    .dd-auth-card__header h2 {
        font-size: 29px;
    }

    .dd-auth-copyright {
        flex-direction: column;
        gap: 5px;
        padding-left: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dd-auth-submit,
    .dd-auth-primary-link,
    .dd-auth-field input,
    .dd-auth-field__heading a {
        transition: none;
    }
}
