:root {
    --sa-blue: #0B1F43;
    --sa-blue-dark: #071428;
    --sa-navy: #0B1F43;
    --sa-navy-2: #163056;
    --sa-text: #111827;
    --sa-muted: #6b7280;
    --sa-border: #d1d5db;
    --sa-field: #f9fafb;
    --sa-radius: 12px;
}

.split-auth {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, "Segoe UI", sans-serif;
    color: var(--sa-text);
    background: #fff;
}

.split-auth__shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
}

.split-auth__form-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #fff;
}

.split-auth__form-inner {
    width: 100%;
    max-width: 460px;
}

.split-auth__logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 36px;
}

.split-auth__logo img {
    display: block;
    height: 52px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
}

.split-auth__heading {
    margin-bottom: 28px;
}

.split-auth__heading h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #1f2937;
}

.split-auth__heading p {
    margin: 0;
    color: var(--sa-muted);
    font-size: 15px;
    line-height: 1.5;
}

.split-auth__field {
    margin-bottom: 18px;
}

.split-auth__field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.split-auth__control {
    position: relative;
}

.split-auth__control i.leading {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    pointer-events: none;
}

.split-auth__control input {
    width: 100%;
    height: 50px;
    border: 1px solid var(--sa-border);
    border-radius: 10px;
    background: #fff;
    padding: 0 44px 0 42px;
    font-size: 14px;
    color: var(--sa-text);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.split-auth__control input:focus {
    border-color: var(--sa-blue);
    box-shadow: 0 0 0 4px rgba(11, 31, 67, 0.14);
}

.split-auth__control input::placeholder {
    color: #9ca3af;
}

.split-auth__toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
}

.split-auth__meta {
    display: flex;
    justify-content: flex-end;
    margin: -6px 0 22px;
}

.split-auth__meta a,
.split-auth__back {
    color: var(--sa-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.split-auth__meta a:hover,
.split-auth__back:hover {
    color: var(--sa-blue-dark);
    text-decoration: underline;
}

.split-auth__submit {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 10px;
    background: var(--sa-blue);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(11, 31, 67, 0.28);
    cursor: pointer;
}

.split-auth__submit:hover {
    background: var(--sa-blue-dark);
}

.split-auth__demo {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
}

.split-auth__demo-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}

.split-auth__demo-hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--sa-muted);
}

.split-auth__demo-card {
    display: block;
    width: 100%;
    margin-bottom: 8px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    text-align: left;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.split-auth__demo-card:hover,
.split-auth__demo-card:focus {
    border-color: var(--sa-blue);
    background: #f3f6fb;
}

.split-auth__demo-card--admin {
    border-color: #d6c7a3;
    background: #fffaf0;
}

.split-auth__demo-role {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.split-auth__demo-creds {
    display: block;
    font-size: 12px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--sa-blue);
}

.split-auth__demo-note {
    display: block;
    font-size: 12px;
    color: var(--sa-muted);
}

.split-auth__switch {
    margin: 16px 0 0;
    text-align: center;
    font-size: 14px;
}

.split-auth__switch a {
    color: var(--sa-blue);
    font-weight: 600;
    text-decoration: none;
}

.split-auth__switch a:hover {
    text-decoration: underline;
}

.split-auth__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #4b5563;
}

.split-auth__brand-pane {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 30% 20%, #1a355c 0%, #0B1F43 52%, #06101f 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px;
}

.split-auth__brand-glow {
    position: absolute;
    inset: auto -80px -80px auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.split-auth__brand-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 460px;
    text-align: center;
}

.split-auth__preview {
    position: relative;
    margin: 0 auto 36px;
    width: min(100%, 360px);
    height: 250px;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
        repeating-linear-gradient(0deg, transparent, transparent 27px, rgba(255,255,255,0.05) 28px),
        repeating-linear-gradient(90deg, transparent, transparent 27px, rgba(255,255,255,0.05) 28px);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.split-auth__pin {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #fbbf24;
    box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.18);
}

.split-auth__pin:nth-child(1) { top: 28px; left: 42px; }
.split-auth__pin:nth-child(2) { top: 58px; right: 54px; }
.split-auth__pin:nth-child(3) { bottom: 42px; left: 72px; }

.split-auth__card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 250px;
    transform: translate(-50%, -50%);
    background: #fff;
    color: #111827;
    border-radius: 16px;
    padding: 16px 16px 14px;
    text-align: left;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
}

.split-auth__card small {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e8eef6;
    color: var(--sa-blue);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.split-auth__card strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.split-auth__card p {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 13px;
}

.split-auth__score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
}

.split-auth__score span {
    color: #f59e0b;
}

.split-auth__brand-copy h2 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.split-auth__brand-copy p {
    margin: 0 auto;
    max-width: 420px;
    color: rgba(255,255,255,0.82);
    font-size: 16px;
    line-height: 1.6;
}

.split-auth__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.split-auth__dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.35);
}

.split-auth__dots span.is-active {
    width: 22px;
    background: #fff;
}

.split-auth .form-group,
.split-auth .mb-3 {
    margin-bottom: 18px;
}

@media (max-width: 991px) {
    .split-auth__shell {
        grid-template-columns: 1fr;
    }

    .split-auth__brand-pane {
        display: none;
    }

    .split-auth__form-pane {
        padding: 36px 20px;
        min-height: 100vh;
    }

    .split-auth__heading h1 {
        font-size: 28px;
    }

    .split-auth__logo img {
        height: 56px;
        max-width: 100%;
    }
}
