/* Clean FXNX-Inspired Split Cobalt-Blue Authentication Theme (Formatra Palette) */
.auth-body {
    --fg-canvas: 9 11 16;
    --fg-surface: 4 6 10;
    --fg-raised: 19 22 30;
    --fg-ink: 245 247 250;
    --fg-muted: 146 155 172;
    --fg-line: 36 42 56;
    --accent-ui: #3b82f6;

    margin: 0;
    min-height: 100dvh;
    background: #04060a !important;
    color: #f5f7fa !important;
    font-family: 'Plus Jakarta Sans Variable', system-ui, -apple-system, sans-serif;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100dvh;
}

@media (min-width: 960px) {
    .auth-shell {
        grid-template-columns: minmax(420px, 47.5%) minmax(0, 1fr);
        padding: 18px;
        gap: 18px;
    }
}

/* Left Rounded Cobalt-Blue Showcase Panel */
.auth-story {
    display: none;
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 56px 44px 48px;
    border: 0 !important;
    background-color: #04060a;
    background-image: radial-gradient(132% 62% at 50% -8%, #eef6ff 0%, #7dd3fc 20%, #2563eb 45%, #0b224e 68%, #04060a 90%);
    background-repeat: no-repeat;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (min-width: 960px) {
    .auth-story {
        display: flex;
    }
}

.auth-story-inner {
    width: 100%;
    max-width: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.auth-story-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: #ffffff;
    margin-bottom: 20px;
}

.auth-brand-svg {
    width: 26px;
    height: 29px;
    display: block;
    color: #ffffff;
    flex-shrink: 0;
}

.auth-story-brand strong {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
}

.auth-story-heading {
    margin: 0 0 8px;
    text-align: center;
    font-size: clamp(26px, 2.5vw, 31px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: #ffffff;
}

.auth-story-sub {
    margin: 0 0 40px;
    text-align: center;
    font-size: 13.5px;
    line-height: 1.5;
    color: rgb(255 255 255 / .84);
}

/* 3-Step Vertical Rail + Staggered Matte Cards */
.auth-steps {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-left: 34px;
}

.auth-steps::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 28px;
    bottom: 28px;
    width: 1px;
    background: rgb(191 219 254 / .18);
}

.auth-step-row {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-step-dot {
    position: absolute;
    left: -34px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    border-radius: 9999px;
    background: #060a13;
    border: 1.5px solid rgb(191 219 254 / .25);
    z-index: 1;
}

.auth-step-row.is-active .auth-step-dot {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgb(59 130 246 / .24);
}

.auth-step-card {
    width: 100%;
    padding: 15px 18px;
    border-radius: 12px;
    background: rgb(7 11 20 / .68);
    border: 1px solid rgb(191 219 254 / .12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.auth-step-row:nth-child(2) .auth-step-card {
    max-width: 90%;
}

.auth-step-row:nth-child(3) .auth-step-card {
    max-width: 96%;
}

.auth-step-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.auth-step-title i {
    font-size: 15px;
    color: #60a5fa;
    flex-shrink: 0;
}

.auth-step-desc {
    margin: 5px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgb(226 232 240 / .56);
}

/* Right Clean Auth Form Side */
.auth-form-side {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: 24px 24px 32px;
    background: #04060a;
}

@media (min-width: 960px) {
    .auth-form-side {
        min-height: auto;
        padding: 28px 48px;
    }
}

.auth-top-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 36px;
}

.auth-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
}

.auth-mobile-svg {
    width: 22px;
    height: 24px;
    display: block;
    color: #3b82f6;
    flex-shrink: 0;
}

@media (min-width: 960px) {
    .auth-mobile-brand {
        visibility: hidden;
        pointer-events: none;
    }
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #8b94a6;
    text-decoration: none;
    transition: color .18s ease;
}

.auth-back-link:hover {
    color: #ffffff;
}

/* Clean Unboxed Form Column */
.auth-card {
    width: 100%;
    max-width: 400px;
    margin: auto;
    padding: 28px 0;
}

.auth-card h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(25px, 2.4vw, 29px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.25;
    color: #ffffff;
}

.auth-card > p {
    margin: 8px 0 32px;
    text-align: center;
    font-size: 13.5px;
    line-height: 1.5;
    color: #8b94a6;
}

.auth-card form {
    display: grid;
    gap: 18px;
}

.auth-card label:not(.remember-label) {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
}

.auth-card .fg-input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border-radius: 10px !important;
    background: #12151e !important;
    border: 1px solid rgb(255 255 255 / .07) !important;
    color: #f3f5f9 !important;
    font-size: 14px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.auth-card .fg-input::placeholder {
    color: #5c6578 !important;
}

.auth-card .fg-input:focus {
    outline: none;
    background: #151925 !important;
    border-color: rgb(96 165 250 / .58) !important;
    box-shadow: 0 0 0 3px rgb(37 99 235 / .18) !important;
}

.auth-card .password-wrap {
    position: relative;
}

.auth-card .password-wrap .fg-input {
    padding-right: 46px;
}

.auth-card .password-wrap button.icon-button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0 !important;
    background: transparent !important;
    color: #8b94a6 !important;
    box-shadow: none !important;
}

.auth-card .password-wrap button.icon-button:hover {
    color: #ffffff !important;
}

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

.auth-card .remember-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: #d1d7e2;
    cursor: pointer;
    user-select: none;
}

.auth-card .remember-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    border-radius: 9999px;
    background: #12151e;
    border: 1.5px solid rgb(255 255 255 / .22);
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease;
}

.auth-card .remember-label input[type="checkbox"]::before {
    content: "";
    width: 8px;
    height: 5px;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: translateY(-1px) rotate(-45deg) scale(0);
    transition: transform .14s ease;
}

.auth-card .remember-label input[type="checkbox"]:checked {
    background: #2563eb;
    border-color: #3b82f6;
}

.auth-card .remember-label input[type="checkbox"]:checked::before {
    transform: translateY(-1px) rotate(-45deg) scale(1);
}

.auth-help-link {
    font-size: 13px;
    color: #8b94a6;
    text-decoration: none;
    transition: color .16s ease;
}

.auth-help-link:hover {
    color: #ffffff;
}

/* Satin Electric-Cobalt Primary Submit Button */
.auth-card .fg-btn-primary {
    width: 100%;
    min-height: 48px;
    margin-top: 4px;
    padding: 12px 20px;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, #60a5fa 0%, #2563eb 48%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 10px 24px rgb(37 99 235 / .28) !important;
    transition: filter .18s ease, transform .14s ease;
    text-decoration: none;
}

.auth-card .fg-btn-primary:hover {
    filter: brightness(1.07);
}

.auth-card .fg-btn-primary:active {
    transform: scale(0.99);
}

.auth-card .fg-btn-secondary {
    border-radius: 10px !important;
    background: #12151e !important;
    border: 1px solid rgb(255 255 255 / .1) !important;
    color: #f3f5f9 !important;
}

.auth-card .field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6f788a;
}

.auth-card .notice {
    margin: 0 0 22px;
    border-radius: 10px;
    background: #12151e;
    border: 1px solid rgb(255 255 255 / .1);
    color: #e2e8f0;
}

.auth-card .notice-error {
    background: rgb(127 29 29 / .22);
    border-color: rgb(248 113 113 / .3);
    color: #fecaca;
}

.auth-card .notice-success {
    background: rgb(30 58 138 / .28);
    border-color: rgb(96 165 250 / .32);
    color: #dbeafe;
}

.auth-bottom-link {
    margin-top: 24px;
    padding-top: 0;
    border-top: 0 !important;
    text-align: center;
    font-size: 13.5px;
    color: #6e7788;
}

.auth-bottom-link a,
.auth-bottom-link button {
    color: #ffffff !important;
    font-weight: 600;
    text-decoration: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    margin-left: 4px;
}

.auth-bottom-link a:hover,
.auth-bottom-link button:hover {
    text-decoration: underline;
}
