/* ==========================================================================
   BLACK LIST - authentication & installation screens
   ========================================================================== */

body.auth-shell {
    min-height: 100vh;
    background: #050506;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(460px, 0.7fr);
    min-height: 100vh;
}

.auth-showcase {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 42px 52px 34px;
    border-right: 1px solid var(--line);
    background:
        radial-gradient(760px 520px at 12% 0%, rgba(225, 29, 46, 0.17), transparent 62%),
        radial-gradient(680px 480px at 100% 100%, rgba(91, 23, 38, 0.15), transparent 65%),
        linear-gradient(160deg, #0b0b0f 0%, #060608 58%, #080609 100%);
}

.auth-showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.42;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 22% 18%, #000 0, transparent 55%);
    pointer-events: none;
}

.auth-showcase::after {
    content: "BLACK LIST";
    position: absolute;
    right: -36px;
    bottom: 10%;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.038);
    font-family: var(--display);
    font-size: clamp(90px, 14vw, 230px);
    font-weight: 700;
    letter-spacing: -0.075em;
    line-height: 0.8;
    transform: rotate(-90deg) translateX(30%);
    transform-origin: right bottom;
    white-space: nowrap;
    pointer-events: none;
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 13px;
    width: fit-content;
}

.auth-brand img {
    width: 46px;
    height: 46px;
}

.auth-brand-copy {
    display: flex;
    flex-direction: column;
}

.auth-brand-name {
    font-family: var(--display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.065em;
    line-height: 1.15;
}

.auth-brand-name em {
    color: var(--red-hot);
    font-style: normal;
}

.auth-brand-sub {
    color: var(--muted-2);
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.auth-hero {
    position: relative;
    z-index: 1;
    margin: auto 0;
    padding: 48px 0 30px;
    max-width: 760px;
}

.auth-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
    color: #bd6774;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.auth-kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--red-hot), rgba(225, 29, 46, 0));
    box-shadow: 0 0 8px var(--red);
}

.auth-hero h1 {
    max-width: 700px;
    font-family: var(--display);
    font-size: clamp(47px, 5.3vw, 82px);
    font-weight: 600;
    letter-spacing: -0.065em;
    line-height: 0.97;
}

.auth-hero h1 span {
    color: transparent;
    background: linear-gradient(105deg, #ff4053 0%, #e11d2e 44%, #8c0d19 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.auth-lede {
    max-width: 470px;
    margin-top: 20px;
    color: #928e9b;
    font-size: 13px;
    line-height: 1.7;
}

.auth-features {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 720px;
    overflow: hidden;
    margin-top: 38px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--line);
}

.auth-feature {
    min-height: 94px;
    padding: 15px;
    background: rgba(9, 9, 12, 0.84);
}

.auth-feature .icon {
    width: 17px;
    height: 17px;
    margin-bottom: 12px;
    color: var(--red-hot);
}

.auth-feature strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text-soft);
    font-size: 11px;
    font-weight: 600;
}

.auth-feature span {
    color: var(--muted-2);
    font-size: 9.5px;
    line-height: 1.45;
}

.auth-showcase-foot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 46px;
    color: #4d4a55;
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.06em;
}

.auth-showcase-foot span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.auth-showcase-foot i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.auth-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    background:
        radial-gradient(500px 300px at 100% 0%, rgba(225, 29, 46, 0.08), transparent 62%),
        linear-gradient(180deg, #0b0b0e 0%, #070709 100%);
}

.auth-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 190px;
    background: linear-gradient(180deg, rgba(225, 29, 46, 0.55), transparent);
}

.auth-form-wrap {
    width: min(384px, 100%);
}

.auth-panel-brand {
    display: none;
    align-items: center;
    gap: 10px;
    margin-bottom: 32px;
}

.auth-panel-brand img {
    width: 38px;
    height: 38px;
}

.auth-panel-brand span {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

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

.auth-form-head .label {
    display: block;
    margin-bottom: 9px;
    color: var(--red-hot);
}

.auth-form-head h2 {
    font-size: 29px;
    line-height: 1.12;
}

.auth-form-head p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.65;
}

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

.auth-form .field {
    gap: 8px;
}

.auth-form .input {
    min-height: 46px;
    background: #08080b;
}

.password-wrap {
    position: relative;
}

.password-wrap .input {
    padding-right: 43px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #625f6a;
    transform: translateY(-50%);
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.password-toggle:hover {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text-soft);
}

.password-toggle .icon {
    width: 15px;
    height: 15px;
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -1px 0 2px;
}

.auth-row .checkbox {
    font-size: 11px;
}

.auth-link {
    color: #a39fab;
    font-size: 10.5px;
    transition: color 0.15s;
}

.auth-link:hover {
    color: var(--red-hot);
}

.auth-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 2px;
    font-size: 12px;
    letter-spacing: 0.03em;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 16px;
    padding: 11px 12px;
    border: 1px solid rgba(225, 29, 46, 0.26);
    border-radius: 9px;
    background: rgba(225, 29, 46, 0.075);
    color: #e9b7bd;
    font-size: 10.5px;
    line-height: 1.55;
}

.auth-alert .icon {
    width: 15px;
    height: 15px;
    margin-top: 1px;
    color: #ff7481;
    flex: 0 0 auto;
}

.auth-alert.info {
    border-color: rgba(120, 145, 255, 0.22);
    background: rgba(120, 145, 255, 0.065);
    color: #b8c3ec;
}

.auth-alert.info .icon {
    color: var(--blue);
}

.auth-alert.success {
    border-color: rgba(53, 208, 127, 0.22);
    background: rgba(53, 208, 127, 0.06);
    color: #b9e6ce;
}

.auth-alert.success .icon {
    color: var(--green);
}

.auth-security-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 24px;
    padding-top: 17px;
    border-top: 1px solid var(--line);
    color: #5c5964;
    font-size: 9.5px;
    line-height: 1.55;
}

.auth-security-note .icon {
    width: 13px;
    height: 13px;
    margin-top: 1px;
    color: #7b3d46;
    flex: 0 0 auto;
}

.auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 29px;
    color: #4f4c57;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-meta i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #57545f;
}

.auth-meta i.green {
    background: var(--green);
    box-shadow: 0 0 6px var(--green);
}

/* Installer */
body.install-shell {
    overflow-y: auto;
}

.install-shell .auth-panel {
    align-items: flex-start;
    padding-top: 52px;
    padding-bottom: 52px;
}

.install-shell .auth-form-wrap {
    width: min(430px, 100%);
}

.install-steps {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 24px;
}

.install-step {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #56535e;
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.install-step b {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border: 1px solid #2c2a32;
    border-radius: 50%;
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 500;
}

.install-step.active {
    color: #d8d3dd;
}

.install-step.active b {
    border-color: rgba(225, 29, 46, 0.45);
    background: rgba(225, 29, 46, 0.12);
    color: #ff7a87;
}

.install-step-line {
    width: 19px;
    height: 1px;
    background: #25232a;
}

.install-code {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #060608;
    color: #a8a2b0;
    font-family: var(--mono);
    font-size: 10px;
    overflow-x: auto;
    white-space: pre;
}

@media (max-width: 1120px) {
    .auth-grid {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
    }

    .auth-showcase {
        padding: 34px 36px 28px;
    }

    .auth-features {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .auth-feature {
        min-height: auto;
        padding: 12px 14px;
    }

    .auth-feature .icon {
        margin-bottom: 7px;
    }
}

@media (max-width: 860px) {
    .auth-grid {
        display: block;
    }

    .auth-showcase {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
        padding: 34px 18px;
    }

    .auth-panel-brand {
        display: flex;
    }

    .auth-form-wrap {
        width: min(400px, 100%);
    }
}
