/* =====================================================================
   ORBIX — sign-in, registration, invite landing and installer
   ===================================================================== */

.gate {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 28px 20px 40px;
    overflow-y: auto;
}

/* The "deck plating" grid that used to sit behind the card is gone. A
   sci-fi texture on a sign-in page is decoration standing in for design,
   and it was the first thing anyone saw. */

.gate__card {
    width: min(430px, 100%);
    padding: 34px 32px 28px;
    border-radius: var(--r-lg);
    background: var(--surface-1s);
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow-2);
    animation: gateIn 480ms var(--ease) both;
}
.gate__card--wide { width: min(720px, 100%); }

@keyframes gateIn {
    from { opacity: 0; transform: translateY(18px) scale(.985); }
    to   { opacity: 1; transform: none; }
}

.gate__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}
.gate__mark {
    width: 44px; height: 44px;
    display: grid;
    place-items: center;
    padding: 7px;
    border-radius: var(--r-md);
    background: var(--beam-dim);
    border: 1px solid var(--line-strong);
}
.gate__name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .24em;
    text-transform: uppercase;
}
.gate__tag {
    font-size: .6875rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-top: 2px;
}

.gate__title { font-size: 1.5rem; letter-spacing: -.02em; }
.gate__lead {
    margin-top: 8px;
    margin-bottom: 24px;
    color: var(--text-dim);
    font-size: .9375rem;
    line-height: 1.6;
}

.gate__alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 13px;
    margin-bottom: 20px;
    border-radius: var(--r-sm);
    background: var(--danger-dim);
    border: 1px solid rgb(var(--danger-rgb) / .3);
    color: #E7B9C1;
    font-size: .8125rem;
    line-height: 1.5;
}
.gate__alert--ok {
    background: rgb(var(--ok-rgb) / .12);
    border-color: rgb(var(--ok-rgb) / .3);
    color: #A8D6C0;
}
.gate__alert--info {
    background: rgb(var(--accent-rgb) / .14);
    border-color: rgb(var(--accent-rgb) / .32);
    color: #CCC8E2;
}
.gate__alert svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

.gate__foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: .8125rem;
    color: var(--text-faint);
}
.gate__foot a { font-weight: 600; }

.gate__meta {
    margin-top: 22px;
    text-align: center;
    font-size: .6875rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-faint);
    opacity: .7;
}

.gate__strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}
.gate__strength i {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: var(--surface-4);
    transition: background var(--mid);
}
.gate__strength[data-score="1"] i:nth-child(1) { background: var(--danger); }
.gate__strength[data-score="2"] i:nth-child(-n+2) { background: var(--warn); }
.gate__strength[data-score="3"] i:nth-child(-n+3) { background: var(--accent-2); }
.gate__strength[data-score="4"] i { background: var(--ok); }

.gate__handle {
    display: flex;
    align-items: center;
    border-radius: var(--r-sm);
    background: var(--surface-0);
    border: 1px solid var(--line-strong);
    transition: border-color var(--fast), box-shadow var(--mid);
}
.gate__handle:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgb(var(--accent-rgb) / .18);
}
.gate__handle span {
    padding: 0 2px 0 12px;
    color: var(--text-faint);
    font-weight: 600;
}
.gate__handle .input {
    border: 0;
    background: none;
    padding-left: 2px;
}
.gate__handle .input:focus { box-shadow: none; background: none; }

/* Invite landing ---------------------------------------------------- */
.invite__icon {
    width: 76px; height: 76px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 28% / 28%;
    font-size: 1.5rem;
    font-weight: 800;
    overflow: hidden;
    box-shadow: var(--shadow-2);
}
.invite__icon img { width: 100%; height: 100%; object-fit: cover; }
.invite__body { text-align: center; }
.invite__body h1 { font-size: 1.5rem; margin-bottom: 6px; }
.invite__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 14px 0 22px;
    font-size: .8125rem;
    color: var(--text-dim);
}
.invite__meta span { display: inline-flex; align-items: center; gap: 6px; }
.invite__desc {
    color: var(--text-dim);
    font-size: .9375rem;
    line-height: 1.6;
    margin-bottom: 22px;
}

/* Installer --------------------------------------------------------- */
.setup__steps {
    display: flex;
    gap: 8px;
    margin-bottom: 26px;
}
.setup__step {
    flex: 1;
    padding-top: 10px;
    border-top: 2px solid var(--surface-3);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-faint);
    transition: color var(--mid), border-color var(--mid);
}
.setup__step.is-active { border-top-color: var(--accent); color: var(--text); }
.setup__step.is-done { border-top-color: var(--ok); color: var(--text-dim); }

.setup__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}
@media (max-width: 560px) {
    .setup__grid { grid-template-columns: minmax(0, 1fr); }
}

.setup__check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    background: var(--surface-2);
    margin-bottom: 6px;
    font-size: .8125rem;
}
.setup__check svg { width: 15px; height: 15px; flex: none; }
.setup__check--ok svg { color: var(--ok); }
.setup__check--warn svg { color: var(--warn); }
.setup__check--bad svg { color: var(--danger); }
.setup__check span:last-child { margin-left: auto; color: var(--text-faint); font-size: .75rem; }

.setup__code {
    padding: 14px;
    border-radius: var(--r-sm);
    background: var(--surface-0);
    border: 1px solid var(--line-strong);
    font-family: var(--font-mono);
    font-size: .75rem;
    line-height: 1.7;
    color: var(--accent-2);
    overflow-x: auto;
    white-space: pre;
}
