/* ══════════════════════════════════════════════════════
   TOKENS
══════════════════════════════════════════════════════ */
:root {
    --violet:    #7C3AED;
    --purple:    #9B5CF5;
    --cyan:      #06B6D4;
    --teal:      #0891B2;
    --grad:      #7d42e3;
    --grad-soft: linear-gradient(135deg, rgba(124,58,237,0.12) 0%, rgba(6,182,212,0.08) 100%);

    --white:   #ffffff;
    --off:     #F8F7FF;
    --glass:   rgba(255,255,255,0.72);
    --glass2:  #ffffff;

    --ink:     #0F0A1E;
    --ink2:    #2D2650;
    --ink3:    #6B6890;
    --border:  rgba(124,58,237,0.18);
    --border2: rgba(124,58,237,0.25);

    --shadow-sm: 0 2px 8px rgba(124,58,237,0.1);
    --shadow-lg: 0 24px 80px rgba(124,58,237,0.18), 0 8px 32px rgba(6,182,212,0.1);
}

/* ══════════════════════════════════════════════════════
   RESET & BASE
══════════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #EDE9FE;
    background-image:
        radial-gradient(ellipse 80% 60% at 20% -10%, rgba(124,58,237,0.28) 0%, transparent 55%),
        radial-gradient(ellipse 60% 70% at 100% 60%,  rgba(6,182,212,0.22) 0%, transparent 55%),
        radial-gradient(ellipse 50% 50% at 50% 110%,  rgba(155,92,245,0.18) 0%, transparent 50%);
}

/* ══════════════════════════════════════════════════════
   ANIMATED BLOBS
══════════════════════════════════════════════════════ */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    animation: blobDrift 12s ease-in-out infinite alternate;
}
.blob-1 { width: 600px; height: 600px; top: -150px;  left: -100px; background: rgba(124,58,237,0.4);  animation-delay: 0s;  }
.blob-2 { width: 500px; height: 500px; bottom: -100px; right: -80px; background: rgba(6,182,212,0.35);  animation-delay: -5s; }
.blob-3 { width: 350px; height: 350px; top: 40%;     left: 35%;    background: rgba(155,92,245,0.25); animation-delay: -9s; }

@keyframes blobDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 20px) scale(1.06); }
}

/* ══════════════════════════════════════════════════════
   PAGE LAYOUT
══════════════════════════════════════════════════════ */
.page {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ══════════════════════════════════════════════════════
   LEFT PANEL
══════════════════════════════════════════════════════ */
.lp {
    width: 45%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 52px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, #1E0D4E 0%, #2D1570 40%, #1A1060 70%, #0D0830 100%);
}

.lp::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 50% at 90% 0%,  rgba(139,92,246,0.5) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 0% 100%, rgba(6,182,212,0.3)  0%, transparent 55%);
}

.lp::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(139,92,246,0.6) 40%, rgba(6,182,212,0.4) 70%, transparent);
    pointer-events: none;
}

.lp-mesh {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05) 0%, transparent 35%),
        radial-gradient(circle at 80% 75%, rgba(6,182,212,0.1)   0%, transparent 35%);
}

.lp-circle {
    position: absolute;
    width: 480px; height: 480px;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
}

.lp-circle-2 {
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,0.14);
    pointer-events: none;
}

/* Brand */
.lp-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    animation: slideDown .7s cubic-bezier(.22,1,.36,1) both;
}

.lp-brand-img {
    width: 70px; height: 70px;
    border-radius: 18px;
    background: rgba(255,255,255,0.18);
    border: 1.5px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.lp-brand-img img { width: 58px; height: 58px; object-fit: contain; }

.lp-brand-name {
    font-family: 'Sora', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

.lp-brand-loc {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.65);
    margin-top: 3px;
}

/* Hero content */
.lp-hero {
    position: relative;
    z-index: 2;
    animation: slideUp .8s cubic-bezier(.22,1,.36,1) .1s both;
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(8px);
    border-radius: 100px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.lp-eyebrow-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #06B6D4;
    box-shadow: 0 0 8px rgba(6,182,212,0.8);
}

.lp-h1 {
    font-family: 'Sora', sans-serif;
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    line-height: 1.12;
    letter-spacing: -.03em;
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.lp-h1 span {
    display: block;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-p {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255,255,255,0.78);
    line-height: 1.75;
    max-width: 300px;
    margin-bottom: 36px;
}

/* Feature cards */
.lp-cards { display: flex; flex-direction: column; gap: 10px; }

.lp-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 14px 18px;
    backdrop-filter: blur(8px);
    transition: background .2s;
}

.lp-card:hover { background: rgba(255,255,255,0.16); }

.lp-card-ico {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lp-card-ico svg {
    width: 18px; height: 18px;
    stroke: #fff; fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lp-card-text strong { display: block; font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.lp-card-text span   { font-size: 12px; color: rgba(255,255,255,0.7); }

/* Contact footer */
.lp-foot {
    position: relative;
    z-index: 2;
    animation: slideUp .8s cubic-bezier(.22,1,.36,1) .2s both;
}

.lp-contact {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 16px 20px;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 16px;
}

.lp-contact-sep  { width: 1px; height: 32px; background: rgba(255,255,255,0.2); }
.lp-contact-item { font-size: 12.5px; color: rgba(255,255,255,0.72); line-height: 1.6; }
.lp-contact-item strong {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    margin-bottom: 1px;
}

/* ══════════════════════════════════════════════════════
   RIGHT PANEL
══════════════════════════════════════════════════════ */
.rp {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 40px 68px;
    position: relative;
    z-index: 1;
    background: linear-gradient(150deg, #F0EEFF 0%, #F7F5FF 50%, #EEF9FF 100%);
}

/* Card */
.rc {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border-radius: 28px;
    border: 1.5px solid rgba(255,255,255,0.9);
    box-shadow: var(--shadow-lg);
    padding: 40px 44px 32px;
    position: relative;
    animation: cardIn .9s cubic-bezier(.22,1,.36,1) .08s both;
}

.rc-tab {
    position: absolute;
    top: 0; left: 44px; right: 44px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--grad);
}

/* Logo in card */
.rc-logo-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.rc-logo-ring {
    width: 92px; height: 92px;
    border-radius: 50%;
    background: var(--grad);
    padding: 3px;
    box-shadow: 0 8px 32px rgba(124,58,237,0.38), 0 2px 8px rgba(6,182,212,0.2);
    margin-bottom: 14px;
    animation: popIn .6s cubic-bezier(.34,1.56,.64,1) .3s both;
}

.rc-logo-inner {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rc-logo-inner img { width: 76px; height: 76px; object-fit: contain; }

.rc-title {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0F0A1E;
    letter-spacing: -.025em;
    margin-bottom: 4px;
}

.rc-sub  { font-size: 15px; color: #4B4470; font-weight: 400; }
.rc-copy { text-align: center; font-size: 13px; color: var(--ink3); margin-top: 18px; }

/* Divider */
.rc-div {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.rc-div-line { flex: 1; height: 1px; background: var(--border); }
.rc-div-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink3);
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Session alert */
.rc-alert {
    padding: 12px 16px;
    margin-bottom: 16px;
    background: rgba(124,58,237,0.07);
    border: 1px solid rgba(124,58,237,0.2);
    border-left: 3px solid var(--violet);
    border-radius: 10px;
    font-size: 14px;
    color: var(--violet);
}

/* ══════════════════════════════════════════════════════
   FORM FIELDS
══════════════════════════════════════════════════════ */
.fg { margin-bottom: 14px; }

.fl {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2D2650;
    margin-bottom: 7px;
}

.fw  { position: relative; }

.fi {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    stroke: var(--ink3); fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    z-index: 5;
    transition: stroke .2s;
}

.fw:focus-within .fi { stroke: var(--violet); }

.fi-inp {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 16px 0 44px;
    border: 1.5px solid var(--border2);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    color: var(--ink);
    background: #F7F5FF;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.fi-inp::placeholder            { color: #A8A4C8; }
.fi-inp:focus                   { border-color: var(--violet); background: #ffffff; box-shadow: 0 0 0 4px rgba(124,58,237,0.1); }
.has-error .fi-inp              { border-color: #F87171; }
.has-error .fi-inp:focus        { box-shadow: 0 0 0 4px rgba(248,113,113,0.12); }
.f-err                          { font-size: 13px; color: #EF4444; margin-top: 5px; }

/* ══════════════════════════════════════════════════════
   SELECT2
══════════════════════════════════════════════════════ */
.s2-fw                          { position: relative; }
.s2-fw .fi                      { z-index: 10; }
.select2-container              { width: 100% !important; }

.select2-container--default .select2-selection--single {
    height: 50px !important;
    border: 1.5px solid var(--border2) !important;
    border-radius: 12px !important;
    background: #F7F5FF !important;
    display: flex !important;
    align-items: center !important;
    padding-left: 44px !important;
    padding-right: 44px !important;
    outline: none !important;
    transition: border-color .2s, box-shadow .2s !important;
}

.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--violet) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(124,58,237,0.1) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--ink) !important;
    font-size: 15px !important;
    font-family: 'DM Sans', sans-serif !important;
    padding: 0 !important;
    line-height: 48px !important;
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder { color: #C4C0E0 !important; }

.select2-container--default .select2-selection--single .select2-selection__arrow {
    position: absolute !important;
    right: 12px !important; top: 50% !important;
    transform: translateY(-50%) !important;
    height: auto !important; width: 16px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--ink3) transparent transparent !important;
    border-width: 5px 4px 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    position: absolute !important;
    right: 32px !important; top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important; float: none !important;
    font-size: 18px !important; line-height: 1 !important;
    color: var(--ink3) !important; font-weight: 300 !important;
}

.select2-dropdown {
    border: 1.5px solid rgba(124,58,237,0.18) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 48px rgba(124,58,237,0.18) !important;
    overflow: hidden;
    margin-top: 4px;
    font-family: 'DM Sans', sans-serif !important;
    background: rgba(255,255,255,0.96) !important;
    backdrop-filter: blur(16px) !important;
}

.select2-search--dropdown { padding: 8px !important; }

.select2-search--dropdown .select2-search__field {
    border: 1.5px solid var(--border2) !important;
    border-radius: 10px !important;
    padding: 9px 13px !important;
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    outline: none !important;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: var(--violet) !important;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1) !important;
}

.select2-results__option {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    padding: 11px 16px !important;
    color: var(--ink) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--grad) !important;
    color: #fff !important;
}

/* ══════════════════════════════════════════════════════
   TOGGLE / SWITCH
══════════════════════════════════════════════════════ */
.ftog     { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; }
.ftog-lbl { font-size: 14px; color: var(--ink2); cursor: pointer; }

.sw       { position: relative; width: 38px; height: 21px; display: inline-block; flex-shrink: 0; }
.sw input { display: none; }

.sw-t {
    position: absolute; inset: 0;
    border-radius: 21px;
    background: #D4D0EE;
    cursor: pointer;
    transition: background .22s;
}

.sw-t::after {
    content: '';
    position: absolute;
    left: 3px; top: 3px;
    width: 15px; height: 15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
    transition: transform .22s;
}

.sw input:checked ~ .sw-t          { background: var(--violet); }
.sw input:checked ~ .sw-t::after   { transform: translateX(17px); }

/* ══════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════ */
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%; height: 52px;
    background: var(--grad);
    color: #fff; border: none;
    border-radius: 14px;
    font-size: 16px; font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer; letter-spacing: .01em;
    box-shadow: 0 8px 24px rgba(124,58,237,0.38), 0 2px 6px rgba(6,182,212,0.2);
    transition: transform .18s, box-shadow .18s;
    margin-bottom: 10px;
    position: relative; overflow: hidden;
}

.btn-login::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
    pointer-events: none;
}

.btn-login svg {
    width: 18px; height: 18px;
    stroke: #fff; fill: none;
    stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}

.btn-login:hover  { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(124,58,237,0.45), 0 4px 10px rgba(6,182,212,0.25); }
.btn-login:active { transform: translateY(0); }

.btn-newco {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%; height: 48px;
    background: rgba(124,58,237,0.06);
    color: var(--violet);
    border: 1.5px solid rgba(124,58,237,0.22);
    border-radius: 14px;
    font-size: 15px; font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer; text-decoration: none;
    transition: background .18s, border-color .18s, box-shadow .18s;
}

.btn-newco svg {
    width: 17px; height: 17px;
    stroke: var(--violet); fill: none;
    stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
}

.btn-newco:hover { background: rgba(124,58,237,0.1); border-color: var(--violet); box-shadow: 0 4px 14px rgba(124,58,237,0.12); }

/* ══════════════════════════════════════════════════════
   STATUS BAR
══════════════════════════════════════════════════════ */
.statusbar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 10;
    height: 38px;
    background: rgba(20,14,50,0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(124,58,237,0.25);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 0;
}

.sb-l { display: flex; align-items: center; gap: 14px; flex: 1; overflow: hidden; min-width: 0; }
.sb-r { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.sb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    font-family: 'DM Sans', sans-serif;
}

.sb-item svg {
    width: 12px; height: 12px;
    stroke: rgba(255,255,255,0.35); fill: none;
    stroke-width: 2;
    stroke-linecap: round; stroke-linejoin: round;
    flex-shrink: 0;
}

.sb-item strong { font-weight: 600; color: rgba(255,255,255,0.88); }
.sb-sep         { width: 1px; height: 15px; background: rgba(255,255,255,0.12); flex-shrink: 0; }

.sb-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(124,58,237,0.25);
    border: 1px solid rgba(124,58,237,0.4);
    border-radius: 6px;
    padding: 2px 10px;
    font-size: 11px; font-weight: 600;
    color: #C4B5FD;
    font-family: 'DM Sans', sans-serif;
}

.sb-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px rgba(6,182,212,0.8); }

.sb-err         { color: #FCA5A5 !important; }
.sb-err svg     { stroke: #FCA5A5 !important; }
.sb-err strong  { color: #FCA5A5 !important; }
.sb-warn strong { color: #FDE68A !important; }

/* ══════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════ */
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp   { from { opacity: 0; transform: translateY(24px);  } to { opacity: 1; transform: translateY(0); } }
@keyframes cardIn    { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes popIn     { from { opacity: 0; transform: scale(.6); }  to { opacity: 1; transform: scale(1); } }

/* ══════════════════════════════════════════════════════
   RESPONSIVE — ≤ 820px
══════════════════════════════════════════════════════ */
@media (max-width: 820px) {
    html, body { overflow-x: hidden; overflow-y: auto; }

    .page {
        flex-direction: column;
        width: 100%;
        min-height: 100vh;
        height: auto;
    }

    .lp {
        width: 100%;
        padding: 20px 20px 18px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-height: unset;
        background: linear-gradient(135deg, #1E0D4E 0%, #2D1570 100%);
    }

    .lp::after                          { display: none; }
    .lp-circle, .lp-circle-2, .lp-mesh { display: none; }
    .lp-hero, .lp-foot                 { display: none; }

    .lp-brand          { animation: none; }
    .lp-brand-img      { width: 48px; height: 48px; border-radius: 12px; }
    .lp-brand-img img  { width: 38px; height: 38px; }
    .lp-brand-name     { font-size: 16px; }
    .lp-brand-loc      { font-size: 12px; }

    .rp {
        flex: 1;
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 28px 16px 28px;
    }

    .rc {
        width: 100%;
        max-width: 100%;
        padding: 32px 20px 24px;
        border-radius: 20px;
        margin: 0;
    }

    .rc-logo-ring      { width: 78px; height: 78px; }
    .rc-logo-inner img { width: 64px; height: 64px; }
    .rc-title          { font-size: 21px; }
    .rc-sub            { font-size: 14px; }
    .fi-inp            { height: 48px; font-size: 15px; }
    .btn-login         { height: 50px; font-size: 15px; }
    .btn-newco         { height: 46px; font-size: 14px; }
}

@media (max-width: 400px) {
    .rp            { padding: 20px 12px 20px; }
    .rc            { padding: 28px 16px 20px; }
    .lp-brand-name { font-size: 13px; }
}

/* ══════════════════════════════════════════════════════
   STEP INDICATOR  (new-company wizard)
══════════════════════════════════════════════════════ */
.steps {
    display: flex;
    align-items: flex-start;
    margin-bottom: 28px;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 20px);
    right: calc(-50% + 20px);
    height: 2px;
    background: var(--border2);
    z-index: 0;
    transition: background .3s;
}

.step-item.done::after { background: var(--violet); }

.step-num {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #F0EEFF;
    border: 2px solid var(--border2);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    color: var(--ink3);
    position: relative; z-index: 1;
    transition: all .25s;
}

.step-item.active .step-num {
    background: var(--grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 14px rgba(124,58,237,0.38);
}

.step-item.done .step-num {
    background: var(--violet);
    border-color: transparent;
    color: #fff;
}

.step-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--ink3);
    margin-top: 7px;
    text-align: center;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.step-item.active .step-label { color: var(--violet); }
.step-item.done  .step-label  { color: var(--ink2); }

/* ══════════════════════════════════════════════════════
   STEP PANELS
══════════════════════════════════════════════════════ */
.step-panel          { display: none; }
.step-panel.active   { display: block; }

/* Guard: prevent third-party CSS (e.g. datepicker3.css .datepicker{padding:4px})
   from collapsing the icon padding on any input inside a .fw wrapper */
.fw .fi-inp { padding-left: 44px !important; }

/* ══════════════════════════════════════════════════════
   PAIRED INPUTS  (date BS / AD side by side)
══════════════════════════════════════════════════════ */
.fw-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ══════════════════════════════════════════════════════
   VAT ROW
══════════════════════════════════════════════════════ */
.vat-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vat-label {
    font-size: 14px;
    color: var(--ink2);
    white-space: nowrap;
    flex-shrink: 0;
}

.vat-rate-wrap      { flex: 1; }
.vat-rate-wrap .fi-inp { padding-left: 16px; }

/* ══════════════════════════════════════════════════════
   STEP NAV BUTTONS
══════════════════════════════════════════════════════ */
.step-nav {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn-step {
    flex: 1; height: 50px;
    border-radius: 12px;
    font-size: 15px; font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: transform .18s, box-shadow .18s, background .18s;
    border: none;
    text-decoration: none;
}

.btn-step-next {
    background: var(--grad);
    color: #fff;
    box-shadow: 0 6px 20px rgba(124,58,237,0.32);
    position: relative; overflow: hidden;
}

.btn-step-next::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.btn-step-next svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn-step-next:hover  { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(124,58,237,0.42); }
.btn-step-next:active { transform: translateY(0); }

.btn-step-back {
    background: rgba(124,58,237,0.06);
    color: var(--violet);
    border: 1.5px solid rgba(124,58,237,0.22) !important;
    flex: 0 0 auto;
    width: 120px;
}

.btn-step-back svg { width: 16px; height: 16px; stroke: var(--violet); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn-step-back:hover { background: rgba(124,58,237,0.12); border-color: var(--violet) !important; }

.btn-step-back[hidden], .btn-step-back.hidden { display: none !important; }

@media (max-width: 820px) {
    .fw-pair     { grid-template-columns: 1fr 1fr; gap: 8px; }
    .step-label  { display: none; }
}

@media (max-width: 440px) {
    .fw-pair { grid-template-columns: 1fr; }
}
