/* =========================================================
   WIREVESTED
   Register Page
   File: assets/css/register.css
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {
    --primary: #2563EB;
    --primary-hover: #1D4ED8;
    --primary-dark: #1E40AF;
    --primary-light: #3B82F6;
    --primary-soft: rgba(37, 99, 235, 0.09);
    --primary-border: rgba(37, 99, 235, 0.20);

    --background: #F8FAFC;
    --surface: #FFFFFF;
    --surface-soft: #F8FAFC;
    --surface-hover: #F1F5F9;

    --text: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;

    --border: #E2E8F0;
    --border-hover: #CBD5E1;

    --danger: #DC2626;
    --danger-soft: #FEF2F2;
    --danger-border: #FECACA;

    --success: #16A34A;
    --success-soft: #F0FDF4;

    --warning: #D97706;

    --heading-font: "Geist", sans-serif;
    --body-font: "Figtree", sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    --shadow-sm:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 1px 3px rgba(15, 23, 42, 0.05);

    --shadow-md:
        0 10px 30px rgba(15, 23, 42, 0.07);

    --transition: 0.2s ease;
}


/* =========================================================
   DARK MODE
========================================================= */

html[data-theme="dark"] {
    --background: #070B14;
    --surface: #0D1422;
    --surface-soft: #111A2B;
    --surface-hover: #162033;

    --text: #F8FAFC;
    --text-secondary: #CBD5E1;
    --text-muted: #64748B;

    --border: rgba(148, 163, 184, 0.15);
    --border-hover: rgba(148, 163, 184, 0.28);

    --primary-soft: rgba(37, 99, 235, 0.14);
    --primary-border: rgba(96, 165, 250, 0.22);

    --danger-soft: rgba(220, 38, 38, 0.08);
    --danger-border: rgba(248, 113, 113, 0.18);

    --success-soft: rgba(22, 163, 74, 0.08);

    color-scheme: dark;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;

    background: var(--background);
    color: var(--text);

    font-family: var(--body-font);
    font-size: 15px;
    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    transition:
        background var(--transition),
        color var(--transition);
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.register-page {
    width: 100%;
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(390px, 0.78fr)
        minmax(600px, 1.22fr);
}


/* =========================================================
   LEFT BRAND PANEL
========================================================= */

.register-brand-panel {
    position: sticky;
    top: 0;

    width: 100%;
    height: 100vh;

    overflow: hidden;

    color: #FFFFFF;

    background:
        linear-gradient(
            145deg,
            #061536 0%,
            #0A2C73 47%,
            #2563EB 100%
        );
}


/* grid texture */

.register-brand-panel::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    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: 48px 48px;

    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.8),
            transparent
        );
}


/* depth overlay */

.register-brand-panel::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 0.15)
        );
}


/* =========================================================
   GLOWS
========================================================= */

.register-glow {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.register-glow-one {
    width: 470px;
    height: 470px;

    top: -210px;
    right: -200px;

    background:
        radial-gradient(
            circle,
            rgba(147, 197, 253, 0.27),
            rgba(59, 130, 246, 0.05) 55%,
            transparent 72%
        );
}

.register-glow-two {
    width: 550px;
    height: 550px;

    left: -290px;
    bottom: -290px;

    background:
        radial-gradient(
            circle,
            rgba(96, 165, 250, 0.19),
            transparent 70%
        );
}


/* =========================================================
   BRAND INNER
========================================================= */

.register-brand-inner {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 670px;
    height: 100%;

    margin: 0 auto;

    padding:
        42px
        clamp(38px, 5vw, 70px)
        34px;

    display: grid;

    grid-template-rows:
        auto
        1fr
        auto;
}


/* =========================================================
   LOGO
========================================================= */

.register-brand-header {
    display: flex;
    align-items: center;
}

.register-logo {
    width: max-content;

    display: inline-flex;
    align-items: center;

    gap: 11px;

    color: #FFFFFF;

    font-family: var(--heading-font);
    font-size: 21px;
    font-weight: 700;

    letter-spacing: -0.4px;
}

.register-logo img {
    width: auto;
    max-width: 180px;
    max-height: 45px;

    object-fit: contain;
}

.register-logo-mark {
    width: 39px;
    height: 39px;

    flex: 0 0 39px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, 0.18);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.11);

    backdrop-filter: blur(12px);

    color: #FFFFFF;

    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 700;
}


/* =========================================================
   BRAND CONTENT
========================================================= */

.register-brand-content {
    align-self: center;

    max-width: 510px;

    padding: 50px 0;
}

.register-eyebrow {
    width: max-content;

    margin-bottom: 24px;

    padding: 7px 11px;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    border:
        1px solid rgba(255, 255, 255, 0.13);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.07);

    backdrop-filter: blur(10px);

    color:
        rgba(255, 255, 255, 0.85);

    font-size: 11px;
    font-weight: 600;
}

.register-eyebrow i {
    color: #BFDBFE;
}

.register-brand-content h1 {
    margin-bottom: 19px;

    color: #FFFFFF;

    font-family: var(--heading-font);

    font-size:
        clamp(42px, 4.4vw, 63px);

    font-weight: 650;

    line-height: 1;

    letter-spacing: -2.7px;
}

.register-brand-content > p {
    max-width: 460px;

    color:
        rgba(255, 255, 255, 0.67);

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   LEFT STEPS
========================================================= */

.register-side-steps {
    position: relative;

    margin-top: 38px;

    display: grid;

    gap: 8px;
}

.register-side-step {
    position: relative;

    max-width: 450px;

    padding: 11px 12px;

    display: flex;
    align-items: center;

    gap: 12px;

    border:
        1px solid transparent;

    border-radius: 13px;

    color:
        rgba(255, 255, 255, 0.55);

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition);
}

.register-side-step.active {
    border-color:
        rgba(255, 255, 255, 0.11);

    background:
        rgba(255, 255, 255, 0.065);

    color: #FFFFFF;

    backdrop-filter: blur(12px);
}

.register-side-step > span {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, 0.13);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.06);

    color:
        rgba(255, 255, 255, 0.65);

    font-family: var(--heading-font);
    font-size: 10px;
    font-weight: 650;
}

.register-side-step.active > span {
    background: #FFFFFF;
    border-color: #FFFFFF;

    color: var(--primary);
}

.register-side-step div {
    min-width: 0;
}

.register-side-step strong {
    display: block;

    margin-bottom: 1px;

    color: inherit;

    font-family: var(--heading-font);
    font-size: 12px;
    font-weight: 600;
}

.register-side-step small {
    display: block;

    color:
        rgba(255, 255, 255, 0.45);

    font-size: 10px;
}


/* =========================================================
   BRAND FOOTER
========================================================= */

.register-brand-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color:
        rgba(255, 255, 255, 0.43);

    font-size: 10px;
}

.register-brand-footer span:last-child {
    display: inline-flex;
    align-items: center;

    gap: 6px;
}


/* =========================================================
   RIGHT SIDE
========================================================= */

.register-main {
    position: relative;

    min-height: 100vh;

    display: grid;

    grid-template-rows:
        auto
        1fr
        auto;

    background: var(--surface);

    transition:
        background var(--transition);
}


/* =========================================================
   TOP BAR
========================================================= */

.register-topbar {
    width: 100%;

    padding:
        27px
        clamp(28px, 4vw, 48px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.register-back {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 600;

    transition:
        color var(--transition);
}

.register-back i {
    font-size: 10px;

    transition:
        transform var(--transition);
}

.register-back:hover {
    color: var(--primary);
}

.register-back:hover i {
    transform: translateX(-3px);
}

.register-top-actions {
    display: flex;
    align-items: center;

    gap: 10px;
}

.existing-account {
    color: var(--text-muted);

    font-size: 11px;
}

.signin-link {
    color: var(--primary);

    font-size: 11px;
    font-weight: 700;
}

.signin-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.register-icon-button {
    width: 38px;
    height: 38px;

    margin-left: 5px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: var(--surface);

    color: var(--text-secondary);

    cursor: pointer;

    transition:
        color var(--transition),
        border-color var(--transition),
        background var(--transition),
        transform var(--transition);
}

.register-icon-button:hover {
    border-color: var(--primary-border);

    background: var(--primary-soft);

    color: var(--primary);

    transform: translateY(-1px);
}


/* =========================================================
   FORM WRAPPER
========================================================= */

.register-form-wrapper {
    width: min(100%, 680px);

    align-self: start;

    margin: 0 auto;

    padding:
        30px
        32px
        65px;
}


/* =========================================================
   MOBILE LOGO
========================================================= */

.register-mobile-logo {
    display: none;

    width: max-content;

    align-items: center;

    gap: 10px;

    margin-bottom: 40px;

    color: var(--text);

    font-family: var(--heading-font);
    font-size: 20px;
}

.register-mobile-logo .register-logo-mark {
    background: var(--primary);
    border-color: var(--primary);

    color: #FFFFFF;
}

.register-mobile-logo img {
    width: auto;
    max-width: 170px;
    max-height: 42px;
}


/* =========================================================
   HEADING
========================================================= */

.register-heading {
    margin-bottom: 26px;
}

.register-kicker {
    display: block;

    margin-bottom: 7px;

    color: var(--primary);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.register-heading h2 {
    margin-bottom: 7px;

    color: var(--text);

    font-family: var(--heading-font);

    font-size:
        clamp(29px, 3vw, 36px);

    font-weight: 650;

    line-height: 1.1;

    letter-spacing: -1.3px;
}

.register-heading p {
    color: var(--text-secondary);

    font-size: 12px;
}


/* =========================================================
   PROGRESS
========================================================= */

.register-progress {
    width: 100%;

    margin-bottom: 31px;

    display: flex;
    align-items: flex-start;
}

.progress-item {
    position: relative;

    min-width: 55px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 6px;
}

.progress-item > span {
    position: relative;
    z-index: 2;

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid var(--border);

    border-radius: 50%;

    background: var(--surface);

    color: var(--text-muted);

    font-family: var(--heading-font);
    font-size: 10px;
    font-weight: 650;

    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.progress-item small {
    color: var(--text-muted);

    font-size: 9px;
    font-weight: 600;

    transition:
        color var(--transition);
}

.progress-item.active > span {
    border-color: var(--primary);

    background: var(--primary);

    color: #FFFFFF;

    box-shadow:
        0 0 0 4px var(--primary-soft);
}

.progress-item.active small {
    color: var(--primary);
}

.progress-item.completed > span {
    border-color: var(--primary);

    background: var(--primary);

    color: #FFFFFF;
}

.progress-item.completed > span::before {
    content: "\f00c";

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    position: absolute;

    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);
    border-radius: 50%;

    color: #FFFFFF;
}

.progress-line {
    position: relative;

    flex: 1;

    height: 30px;

    display: flex;
    align-items: center;
}

.progress-line::before {
    content: "";

    width: 100%;
    height: 1px;

    background: var(--border);
}

.progress-line > span {
    position: absolute;

    left: 0;

    width: 0;
    height: 2px;

    background: var(--primary);

    transition:
        width 0.35s ease;
}

.progress-line.completed > span {
    width: 100%;
}


/* =========================================================
   SERVER ALERT
========================================================= */

.register-alert {
    width: 100%;

    margin-bottom: 24px;

    padding: 14px;

    display: flex;
    align-items: flex-start;

    gap: 11px;

    border:
        1px solid var(--danger-border);

    border-radius: 13px;

    background: var(--danger-soft);
}

.register-alert-icon {
    width: 31px;
    height: 31px;

    flex: 0 0 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background:
        rgba(220, 38, 38, 0.08);

    color: var(--danger);

    font-size: 12px;
}

.register-alert strong {
    display: block;

    margin-bottom: 5px;

    color: var(--danger);

    font-size: 11px;
    font-weight: 700;
}

.register-alert ul {
    padding-left: 15px;

    color: var(--text-secondary);

    font-size: 10.5px;
    line-height: 1.55;
}


/* =========================================================
   STEPS
========================================================= */

.register-step {
    display: none;

    width: 100%;
}

.register-step.active {
    display: block;

    animation:
        registerStepIn
        0.25s ease;
}

@keyframes registerStepIn {

    from {
        opacity: 0;
        transform: translateX(8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* =========================================================
   STEP HEADING
========================================================= */

.step-heading {
    margin-bottom: 24px;

    padding-bottom: 18px;

    display: flex;
    align-items: center;

    gap: 11px;

    border-bottom:
        1px solid var(--border);
}

.step-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--primary-soft);

    color: var(--primary);

    font-size: 13px;
}

.step-heading h3 {
    margin-bottom: 2px;

    color: var(--text);

    font-family: var(--heading-font);
    font-size: 15px;
    font-weight: 650;

    letter-spacing: -0.25px;
}

.step-heading p {
    color: var(--text-muted);

    font-size: 10.5px;
}


/* =========================================================
   GRIDS
========================================================= */

.register-grid {
    width: 100%;

    display: grid;

    gap: 16px;
}

.register-grid-2 {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}


/* =========================================================
   FORM GROUP
========================================================= */

.form-group {
    margin-bottom: 17px;
}

.form-group > label {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    margin-bottom: 7px;

    color: var(--text);

    font-size: 11px;
    font-weight: 650;
}

.form-group > label small {
    color: var(--text-muted);

    font-size: 9px;
    font-weight: 500;
}


/* =========================================================
   INPUT SHELL
========================================================= */

.input-shell,
.select-shell {
    position: relative;

    width: 100%;
}

.input-shell input,
.select-shell select {
    width: 100%;
    height: 49px;

    border:
        1px solid var(--border);

    border-radius: 11px;

    outline: none;

    background: var(--surface);

    color: var(--text);

    font-family: var(--body-font);
    font-size: 12px;
    font-weight: 500;

    box-shadow: var(--shadow-sm);

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

.input-shell input {
    padding:
        0 45px;
}

.select-shell select {
    padding:
        0 42px
        0 45px;

    appearance: none;
    -webkit-appearance: none;

    cursor: pointer;
}

.input-shell input::placeholder {
    color: var(--text-muted);

    font-weight: 400;
}

.input-shell input:hover,
.select-shell select:hover {
    border-color: var(--border-hover);
}

.input-shell input:focus,
.select-shell select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px var(--primary-soft);
}


/* =========================================================
   INPUT ICON
========================================================= */

.input-icon {
    position: absolute;

    z-index: 2;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--text-muted);

    font-size: 11px;

    pointer-events: none;

    transition:
        color var(--transition);
}

.input-shell:focus-within .input-icon,
.select-shell:focus-within .input-icon {
    color: var(--primary);
}


/* =========================================================
   SELECT
========================================================= */

.select-arrow {
    position: absolute;

    z-index: 2;

    right: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--text-muted);

    font-size: 8px;

    pointer-events: none;
}


/* =========================================================
   DATE INPUT
========================================================= */

.input-shell input[type="date"] {
    padding-right: 14px;
}

.input-shell input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.6;

    cursor: pointer;
}


/* =========================================================
   FIELD HELP
========================================================= */

.field-help {
    display: block;

    margin-top: 6px;

    color: var(--text-muted);

    font-size: 9.5px;
    line-height: 1.45;
}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {
    position: absolute;

    z-index: 3;

    right: 7px;
    top: 50%;

    width: 34px;
    height: 34px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: transparent;

    color: var(--text-muted);

    font-size: 11px;

    cursor: pointer;

    transition:
        background var(--transition),
        color var(--transition);
}

.password-toggle:hover {
    background: var(--surface-soft);

    color: var(--primary);
}


/* =========================================================
   PASSWORD STRENGTH
========================================================= */

.password-strength {
    margin-top: 8px;
}

.strength-bars {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 4px;

    margin-bottom: 6px;
}

.strength-bars span {
    height: 3px;

    border-radius: 999px;

    background: var(--border);

    transition:
        background var(--transition);
}


/* JS strength states */

.password-strength[data-strength="1"]
.strength-bars span:nth-child(1) {
    background: #DC2626;
}

.password-strength[data-strength="2"]
.strength-bars span:nth-child(-n+2) {
    background: #D97706;
}

.password-strength[data-strength="3"]
.strength-bars span:nth-child(-n+3) {
    background: #2563EB;
}

.password-strength[data-strength="4"]
.strength-bars span {
    background: #16A34A;
}

.password-strength small {
    display: block;

    color: var(--text-muted);

    font-size: 9px;
    line-height: 1.4;
}


/* =========================================================
   PIN INTRO
========================================================= */

.pin-intro {
    margin:
        5px 0
        19px;

    padding: 12px;

    display: flex;
    align-items: flex-start;

    gap: 10px;

    border:
        1px solid var(--primary-border);

    border-radius: 11px;

    background: var(--primary-soft);
}

.pin-intro > span {
    width: 31px;
    height: 31px;

    flex: 0 0 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: var(--surface);

    color: var(--primary);

    font-size: 10px;
}

.pin-intro strong {
    display: block;

    margin-bottom: 2px;

    color: var(--text);

    font-size: 10.5px;
    font-weight: 700;
}

.pin-intro p {
    color: var(--text-secondary);

    font-size: 9.5px;
    line-height: 1.5;
}


/* =========================================================
   PIN INPUT
========================================================= */

.pin-shell input {
    letter-spacing: 7px;

    font-family: var(--heading-font);
    font-size: 17px;
    font-weight: 650;
}


/* =========================================================
   STARTING TIER
========================================================= */

.starting-tier {
    position: relative;

    margin:
        5px 0
        20px;

    padding: 15px;

    display: grid;

    grid-template-columns:
        auto
        1fr
        auto;

    align-items: center;

    gap: 12px;

    border:
        1px solid var(--border);

    border-radius: 13px;

    background: var(--surface-soft);
}

.starting-tier-icon {
    width: 39px;
    height: 39px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--primary-soft);

    color: var(--primary);

    font-size: 12px;
}

.starting-tier-label {
    display: block;

    margin-bottom: 1px;

    color: var(--text-muted);

    font-size: 8.5px;
    font-weight: 650;

    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.starting-tier strong {
    display: block;

    margin-bottom: 2px;

    color: var(--text);

    font-family: var(--heading-font);
    font-size: 12px;
    font-weight: 650;
}

.starting-tier p {
    max-width: 400px;

    color: var(--text-secondary);

    font-size: 9px;
    line-height: 1.45;
}

.tier-badge {
    padding:
        5px 8px;

    border:
        1px solid var(--primary-border);

    border-radius: 999px;

    background: var(--primary-soft);

    color: var(--primary);

    font-size: 8.5px;
    font-weight: 700;
}


/* =========================================================
   TERMS
========================================================= */

.terms-check {
    position: relative;

    width: 100%;

    display: flex;
    align-items: flex-start;

    gap: 9px;

    color: var(--text-secondary);

    font-size: 10px;
    line-height: 1.55;

    cursor: pointer;
}

.terms-check input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;

    flex: 0 0 18px;

    margin-top: 1px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid var(--border);

    border-radius: 5px;

    background: var(--surface);

    color: transparent;

    font-size: 7px;

    transition:
        border-color var(--transition),
        background var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}

.terms-check input:checked + .custom-checkbox {
    border-color: var(--primary);

    background: var(--primary);

    color: #FFFFFF;

    box-shadow:
        0 0 0 3px var(--primary-soft);
}

.terms-check a {
    color: var(--primary);

    font-weight: 650;
}

.terms-check a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* =========================================================
   STEP ACTIONS
========================================================= */

.step-actions {
    width: 100%;

    margin-top: 30px;

    padding-top: 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    border-top:
        1px solid var(--border);
}


/* =========================================================
   NEXT / SUBMIT
========================================================= */

.register-next,
.register-submit {
    min-width: 138px;
    height: 46px;

    padding:
        0 16px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border-radius: 10px;

    background: var(--primary);

    color: #FFFFFF;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 7px 18px rgba(37, 99, 235, 0.18);

    transition:
        background var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.register-next:hover,
.register-submit:hover {
    background: var(--primary-hover);

    transform: translateY(-1px);

    box-shadow:
        0 10px 22px rgba(37, 99, 235, 0.24);
}

.register-next i,
.register-submit i {
    font-size: 9px;

    transition:
        transform var(--transition);
}

.register-next:hover i,
.register-submit:hover i {
    transform: translateX(2px);
}

.register-submit:disabled {
    opacity: 0.65;

    cursor: wait;

    transform: none;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.register-back-button {
    min-width: 100px;
    height: 44px;

    padding:
        0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: var(--surface);

    color: var(--text-secondary);

    font-size: 10.5px;
    font-weight: 650;

    cursor: pointer;

    transition:
        border-color var(--transition),
        color var(--transition),
        background var(--transition);
}

.register-back-button:hover {
    border-color: var(--primary-border);

    background: var(--primary-soft);

    color: var(--primary);
}

.register-back-button i {
    font-size: 8px;
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.register-security-note {
    margin-top: 28px;

    padding-top: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border-top:
        1px solid var(--border);

    color: var(--text-muted);

    font-size: 9px;
}

.register-security-note i {
    color: var(--primary);

    font-size: 9px;
}


/* =========================================================
   FOOTER
========================================================= */

.register-footer {
    padding:
        22px 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    color: var(--text-muted);

    font-size: 9px;
}

.register-footer > span {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: var(--border);
}

.register-footer a {
    transition:
        color var(--transition);
}

.register-footer a:hover {
    color: var(--primary);
}


/* =========================================================
   FLOATING SUPPORT
========================================================= */

.register-chat-button {
    position: fixed;

    z-index: 9990;

    right: 19px;
    bottom: 19px;

    width: 49px;
    height: 49px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: var(--primary);

    color: #FFFFFF;

    font-size: 16px;

    cursor: pointer;

    box-shadow:
        0 12px 30px rgba(37, 99, 235, 0.28);

    transition:
        transform var(--transition),
        background var(--transition);
}

.register-chat-button:hover {
    transform: translateY(-3px);

    background: var(--primary-hover);
}

.register-chat-status {
    position: absolute;

    top: 6px;
    right: 6px;

    width: 8px;
    height: 8px;

    border:
        2px solid var(--primary);

    border-radius: 50%;

    background: #22C55E;
}


/* =========================================================
   VALIDATION STATES
========================================================= */

.input-shell.has-error input,
.select-shell.has-error select,
.input-shell input.input-error,
.select-shell select.input-error {
    border-color: var(--danger);

    box-shadow:
        0 0 0 3px rgba(220, 38, 38, 0.07);
}

.input-shell.has-error .input-icon,
.select-shell.has-error .input-icon {
    color: var(--danger);
}

.field-error {
    display: flex;
    align-items: center;

    gap: 5px;

    margin-top: 5px;

    color: var(--danger);

    font-size: 9px;
    font-weight: 550;
}

.field-error i {
    font-size: 8px;
}


/* =========================================================
   VALID STATE
========================================================= */

.input-shell.has-success input,
.select-shell.has-success select {
    border-color:
        rgba(22, 163, 74, 0.45);
}

.input-shell.has-success .input-icon,
.select-shell.has-success .input-icon {
    color: var(--success);
}


/* =========================================================
   CAPS LOCK
========================================================= */

.caps-lock-warning {
    display: none;

    align-items: center;

    gap: 5px;

    margin-top: 6px;

    color: var(--warning);

    font-size: 9px;
    font-weight: 600;
}

.caps-lock-warning.visible {
    display: flex;
}


/* =========================================================
   DARK MODE
========================================================= */

html[data-theme="dark"]
.register-main {
    background: var(--surface);
}

html[data-theme="dark"]
.input-shell input,
html[data-theme="dark"]
.select-shell select {
    background: #0A111E;
}

html[data-theme="dark"]
.register-icon-button,
html[data-theme="dark"]
.register-back-button,
html[data-theme="dark"]
.custom-checkbox {
    background: #0A111E;
}

html[data-theme="dark"]
.pin-intro > span {
    background: #0A111E;
}

html[data-theme="dark"]
.register-brand-panel {
    background:
        linear-gradient(
            145deg,
            #030A18 0%,
            #071C49 48%,
            #123E9E 100%
        );
}


/* =========================================================
   AUTOFILL
========================================================= */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color:
        var(--text);

    -webkit-box-shadow:
        0 0 0 1000px
        var(--surface)
        inset;

    transition:
        background-color
        9999s ease-in-out
        0s;
}

html[data-theme="dark"]
input:-webkit-autofill,
html[data-theme="dark"]
input:-webkit-autofill:hover,
html[data-theme="dark"]
input:-webkit-autofill:focus {
    -webkit-text-fill-color:
        #F8FAFC;

    -webkit-box-shadow:
        0 0 0 1000px
        #0A111E
        inset;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .register-page {
        grid-template-columns:
            minmax(340px, 0.7fr)
            minmax(550px, 1.3fr);
    }

    .register-brand-inner {
        padding:
            35px
            35px
            30px;
    }

    .register-brand-content h1 {
        font-size: 43px;

        letter-spacing: -2px;
    }

    .register-form-wrapper {
        padding-left: 35px;
        padding-right: 35px;
    }

}


/* =========================================================
   MOBILE / SMALL TABLET
========================================================= */

@media (max-width: 880px) {

    .register-page {
        display: block;
    }

    .register-brand-panel {
        display: none;
    }

    .register-main {
        min-height: 100vh;
    }

    .register-topbar {
        padding:
            20px
            24px;
    }

    .register-form-wrapper {
        width:
            min(100%, 650px);

        padding:
            38px
            28px
            65px;
    }

    .register-mobile-logo {
        display: inline-flex;
    }

}


/* =========================================================
   PHONE
========================================================= */

@media (max-width: 600px) {

    .register-topbar {
        padding:
            17px
            18px;
    }

    .register-back {
        width: 38px;
        height: 38px;

        justify-content: center;

        border:
            1px solid var(--border);

        border-radius: 10px;
    }

    .register-back span {
        display: none;
    }

    .register-back:hover i {
        transform: none;
    }

    .existing-account {
        display: none;
    }

    .register-form-wrapper {
        padding:
            27px
            19px
            60px;
    }

    .register-mobile-logo {
        margin-bottom: 38px;
    }

    .register-heading h2 {
        font-size: 30px;

        letter-spacing: -1px;
    }

    .register-grid-2 {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .register-progress {
        margin-bottom: 27px;
    }

    .progress-item {
        min-width: 45px;
    }

    .progress-item small {
        font-size: 8px;
    }

    .step-heading {
        align-items: flex-start;
    }

    .starting-tier {
        grid-template-columns:
            auto
            1fr;
    }

    .tier-badge {
        grid-column: 2;

        width: max-content;
    }

    .step-actions {
        margin-top: 25px;
    }

    .register-next,
    .register-submit {
        min-width: 125px;
    }

    .register-footer {
        padding:
            18px
            12px;
    }

    .register-chat-button {
        right: 14px;
        bottom: 14px;

        width: 47px;
        height: 47px;
    }

}


/* =========================================================
   VERY SMALL PHONE
========================================================= */

@media (max-width: 390px) {

    .register-form-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }

    .register-heading h2 {
        font-size: 28px;
    }

    .progress-item small {
        display: none;
    }

    .progress-line {
        height: 30px;
    }

    .step-actions {
        gap: 8px;
    }

    .register-next,
    .register-submit {
        min-width: 115px;

        padding:
            0 12px;
    }

}


/* =========================================================
   SHORT DESKTOP SCREENS
========================================================= */

@media
(min-width: 881px)
and
(max-height: 760px) {

    .register-brand-inner {
        padding-top: 27px;
        padding-bottom: 24px;
    }

    .register-brand-content {
        padding:
            28px 0;
    }

    .register-brand-content h1 {
        font-size: 42px;
    }

    .register-side-steps {
        margin-top: 25px;
    }

    .register-side-step {
        padding:
            8px 10px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}