/* Auth split layout (login / apply / reset) */
:root {
    --as-bg: #070b14;
    --as-bg-2: #0c1220;
    --as-panel: #0f1626;
    --as-panel-elev: #141d30;
    --as-border: rgba(148, 163, 184, 0.18);
    --as-text: #f1f5f9;
    --as-muted: #94a3b8;
    --as-primary: #4f6ef7;
    --as-primary-hover: #3d5ce5;
    --as-focus: rgba(79, 110, 247, 0.35);
    --as-danger: #f87171;
    --as-ok: #34d399;
    --as-radius: 12px;
    --as-font: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
}

body.auth-split-shell {
    margin: 0;
    min-height: 100vh;
    background: var(--as-bg);
    color: var(--as-text);
    font-family: var(--as-font);
    -webkit-font-smoothing: antialiased;
}

body.auth-split-shell a {
    color: #93a8ff;
    text-decoration: none;
}

body.auth-split-shell a:hover {
    color: #c3ceff;
    text-decoration: underline;
}

.auth-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(380px, 500px);
}

.auth-split__showcase {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(900px 520px at 15% 10%, rgba(79, 110, 247, 0.18), transparent 55%),
        radial-gradient(700px 420px at 80% 80%, rgba(56, 189, 248, 0.08), transparent 50%),
        linear-gradient(160deg, var(--as-bg) 0%, var(--as-bg-2) 55%, #0a101c 100%);
    border-right: 1px solid var(--as-border);
    padding: 40px 48px;
    display: flex;
}

.auth-split__art {
    position: absolute;
    right: -6%;
    top: 50%;
    transform: translateY(-50%);
    width: min(72%, 640px);
    aspect-ratio: 1;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
}

.auth-split__art-svg {
    width: 100%;
    height: 100%;
    display: block;
    animation: auth-art-float 10s ease-in-out infinite;
}

@keyframes auth-art-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.auth-split__showcase-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.auth-split__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--as-text) !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 1.15rem;
}

.auth-split__brand img {
    width: auto;
    height: 64px;
    max-width: 260px;
    object-fit: contain;
    border-radius: 10px;
}

.auth-split__brand--logo-only img {
    height: 92px;
    max-width: 360px;
}

.auth-split__brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b5bdb, #4f6ef7);
    color: #fff;
    font-size: 1.25rem;
}

.auth-split__headline {
    margin: 0 0 1.5rem;
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 18ch;
}

.auth-split__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.auth-split__features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--as-muted);
    font-size: 0.98rem;
}

.auth-split__features i {
    width: 1.5rem;
    color: #7b91ff;
    font-size: 1.1rem;
}

.auth-split__panel {
    background: var(--as-panel);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

.auth-split__panel-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 36px 24px;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    box-sizing: border-box;
}

.auth-split__panel-inner:has(.auth-wizard) {
    max-width: 640px;
}

.auth-split:has(.auth-wizard) {
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, 640px);
}

.auth-split__version {
    margin: 0;
    padding: 0 36px 22px;
    text-align: center;
    color: #64748b;
    font-size: 0.75rem;
}

.auth-panel__title {
    margin: 0 0 0.4rem;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.auth-panel__sub {
    margin: 0 0 1.6rem;
    color: var(--as-muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.auth-panel__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.1rem;
    font-size: 0.9rem;
}

.auth-demo {
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.45);
}
.auth-demo__title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.65rem;
}
.auth-demo__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
}
.auth-demo__label {
    display: block;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 0.15rem;
}
.auth-demo code {
    color: #e2e8f0;
    font-size: 0.82rem;
    word-break: break-all;
}
.auth-demo__pass {
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}
.auth-demo__fill {
    flex-shrink: 0;
    white-space: nowrap;
}

.auth-field {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.auth-field > span,
.auth-field > .form-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: #cbd5e1;
    margin: 0;
}

.auth-input {
    position: relative;
}

.auth-input > i:first-child {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #64748b;
    font-size: 0.95rem;
    width: 1rem;
    text-align: center;
    pointer-events: none;
}

.auth-split-shell .form-control,
.auth-split-shell .form-select,
.auth-split-shell select.form-control,
.auth-field input:not([type="checkbox"]):not([type="radio"]),
.auth-field select,
.auth-field textarea {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid var(--as-border);
    background: var(--as-panel-elev);
    color: var(--as-text);
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    box-shadow: none;
}

.auth-field .auth-input > .form-control,
.auth-field .auth-input > input {
    position: relative;
    z-index: 1;
    padding-left: 2.7rem !important;
}

.auth-field .auth-input:has(.auth-toggle-pass) > .form-control,
.auth-field .auth-input:has(.auth-toggle-pass) > input {
    padding-right: 2.6rem !important;
}

.auth-input .auth-toggle-pass {
    position: absolute;
    right: 0.55rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border: 0;
    background: transparent;
    color: #64748b;
    padding: 0.35rem;
    line-height: 1;
    cursor: pointer;
}

.auth-input .auth-toggle-pass:hover {
    color: #cbd5e1;
}

.auth-split-shell .form-control:focus,
.auth-split-shell .form-select:focus,
.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
    outline: none;
    border-color: rgba(79, 110, 247, 0.7);
    box-shadow: 0 0 0 3px var(--as-focus);
    background: #172033;
    color: #fff;
}

.auth-split-shell .form-control::placeholder,
.auth-field input::placeholder,
.auth-field textarea::placeholder {
    color: #64748b;
}

.auth-split-shell .btn-primary {
    --bs-btn-bg: var(--as-primary);
    --bs-btn-border-color: var(--as-primary);
    --bs-btn-hover-bg: var(--as-primary-hover);
    --bs-btn-hover-border-color: var(--as-primary-hover);
    --bs-btn-active-bg: var(--as-primary-hover);
    --bs-btn-active-border-color: var(--as-primary-hover);
    --bs-btn-color: #fff;
    font-weight: 650;
    border-radius: 10px;
    min-height: 46px;
    box-shadow: 0 10px 24px rgba(79, 110, 247, 0.25);
}

.auth-split-shell .btn-outline-secondary {
    --bs-btn-color: #cbd5e1;
    --bs-btn-border-color: rgba(148, 163, 184, 0.35);
    --bs-btn-hover-bg: rgba(148, 163, 184, 0.1);
    --bs-btn-hover-border-color: rgba(148, 163, 184, 0.55);
    --bs-btn-hover-color: #fff;
    border-radius: 10px;
    min-height: 46px;
    font-weight: 600;
}

.auth-split-shell .form-text {
    color: var(--as-muted);
    font-size: 0.8rem;
}

/* Type cards (dark) */
.auth-type-grid .bp-type-card {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    position: relative;
}

.auth-type-grid .bp-type-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-type-grid .bp-type-card__body {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    min-height: 4.4rem;
    padding: 0.85rem 0.95rem;
    border-radius: var(--as-radius);
    border: 1px solid var(--as-border);
    background: var(--as-panel-elev);
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-type-grid .bp-type-card__body i {
    color: #7b91ff;
    font-size: 1.2rem;
    margin-top: 0.1rem;
}

.auth-type-grid .bp-type-card__body strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.auth-type-grid .bp-type-card__body span span {
    display: block;
    color: var(--as-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.auth-type-grid .bp-type-card input:checked + .bp-type-card__body {
    border-color: rgba(79, 110, 247, 0.75);
    background: rgba(79, 110, 247, 0.12);
    box-shadow: 0 0 0 3px var(--as-focus);
}

.auth-type-grid .bp-type-card:hover .bp-type-card__body {
    border-color: rgba(148, 163, 184, 0.4);
}

/* Wizard */
.auth-wizard__steps {
    display: flex;
    gap: 0.4rem;
    margin: 0 0 1.4rem;
}

.auth-wizard__step {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: rgba(148, 163, 184, 0.22);
    transition: background 0.2s ease;
}

.auth-wizard__step.is-done,
.auth-wizard__step.is-active {
    background: var(--as-primary);
}

.auth-wizard__step.is-active {
    box-shadow: 0 0 0 1px rgba(79, 110, 247, 0.35);
}

.auth-wizard__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.auth-wizard__meta strong {
    color: #fff;
    font-size: 0.95rem;
}

.auth-wizard__meta span {
    color: var(--as-muted);
    font-size: 0.8rem;
}

.auth-wizard__pane {
    display: none;
}

.auth-wizard__pane.is-active {
    display: block;
}

.auth-wizard__nav {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.auth-wizard__nav .btn {
    flex: 1;
}

.auth-alert {
    border-radius: var(--as-radius);
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
    color: #fde68a;
    padding: 0.95rem 1rem;
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.auth-alert strong {
    display: block;
    color: #fff;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
}

.auth-alert ul {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
}

.auth-check {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    color: #cbd5e1;
    font-size: 0.88rem;
    line-height: 1.4;
    margin: 1rem 0 0;
}

.auth-check input {
    margin-top: 0.2rem;
    accent-color: var(--as-primary);
}

.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.85rem;
}

.auth-panel .js-corporate-only.is-hidden {
    display: none !important;
}

@media (max-width: 960px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-split:has(.auth-wizard) {
        grid-template-columns: 1fr;
    }

    .auth-split__showcase {
        display: none;
    }

    .auth-split__panel {
        min-height: 100vh;
    }

    .auth-split__panel-inner,
    .auth-split__panel-inner:has(.auth-wizard) {
        max-width: 520px;
    }
}

@media (max-width: 560px) {
    .auth-split__panel-inner,
    .auth-split__panel-inner.--wide {
        padding: 28px 20px 16px;
    }

    .auth-grid-2 {
        grid-template-columns: 1fr;
    }

    .auth-wizard__nav {
        flex-direction: column-reverse;
    }
}
