:root {
    --bg: #0a0c10;
    --surface: #111318;
    --card: #15181f;
    --border: #1e2330;
    --accent: #e8ff47;
    --accent2: #ff4f5a;
    --accent3: #38e8c4;
    --text: #f0f2f8;
    --muted: #6b7280;
    --font-head: 'Readex Pro', sans-serif;
    --font-body: 'Readex Pro', sans-serif;
    --font-mono: 'Readex Pro', sans-serif;
    --footer-h: 64px;
    --purple: #c77dff;
    --blue: #5b8dee;
    --font-h: 'Readex Pro', sans-serif;
    --font-b: 'Readex Pro', sans-serif;
    --font-m: 'Readex Pro', sans-serif;
    --active-c: #38e8c4;
    --expired-c: #ff4f5a;
    --inactive-c: #6b7280;
    --freeze-c: #ff9a3c;
    --accent-faint: rgba(232, 255, 71, .09);
    --accent2-faint: rgba(255, 79, 90, .09);
    --accent3-faint: rgba(56, 232, 196, .09);
    --accent4-faint: rgba(255, 154, 60, .09);
    --accent-glow: rgba(232, 255, 71, .28);
    --accent3-glow: rgba(56, 232, 196, .22);
    --radius: 18px;
    --nav-h: var(--footer-h);
    --font-h-ar: 'Readex Pro', sans-serif;
    --font-b-ar: 'Readex Pro', sans-serif;
    --font-m-ar: 'Readex Pro', sans-serif;
}

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

html, body {
    height: 100%;
    overflow: hidden
}

@media (max-width: 900px) {
    html, body {
        overflow: auto
    }
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 4px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px
}

/* ═══════════════════════════════════════
   ANIMATED BACKGROUND CANVAS
═══════════════════════════════════════ */
#bgCanvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ═══════════════════════════════════════
   NOISE OVERLAY
═══════════════════════════════════════ */
.noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
    background-size: 160px;
    opacity: .6;
}

/* ═══════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════ */
/*.auth-layout {*/
    /*position: relative;*/
    /*z-index: 2;*/
    /*min-height: 100vh;*/
    /*display: grid;*/
    /*grid-template-columns:1fr 1fr;*/
/*}*/

/*@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns:1fr;
        min-height: 100vh
    }
}*/

/* ═══════════════════════════════════════
   LEFT PANEL — BRAND SIDE
═══════════════════════════════════════ */
.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 48px;
    overflow: hidden;
    border-right: 1px solid var(--border);
    animation: panelIn .8s cubic-bezier(.22, 1, .36, 1) both;
}

@media (max-width: 900px) {
    .brand-panel {
        padding: 32px 28px 28px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        min-height: auto;
    }
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateX(-30px)
    }
    to {
        opacity: 1;
        transform: translateX(0)
    }
}

/* decorative geometric accent lines */
.brand-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent3), var(--accent), transparent);
}

.brand-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 3px;
    top: 0;
    background: linear-gradient(180deg, transparent, var(--accent3), transparent);
}

/* watermark */
.brand-watermark {
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-family: var(--font-head);
    font-size: clamp(7rem, 14vw, 13rem);
    color: rgba(232, 255, 71, .03);
    line-height: 1;
    pointer-events: none;
    letter-spacing: -.02em;
    user-select: none;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeUp .6s .1s both;
}

.brand-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #000;
    box-shadow: 0 0 30px var(--accent-glow);
    flex-shrink: 0;
}

.brand-logo-text {
    font-family: var(--font-head);
    font-size: 1.9rem;
    letter-spacing: .04em;
    color: var(--text);
    line-height: 1;
}

.brand-logo-text span {
    color: var(--accent)
}

.brand-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 0;
}

.brand-tag {
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeUp .6s .2s both;
}

.brand-tag::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--accent);
}

.brand-headline {
    font-family: var(--font-head);
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: .95;
    letter-spacing: .01em;
    margin-bottom: 20px;
    animation: fadeUp .6s .3s both;
}

.brand-headline .hl-accent {
    color: var(--accent)
}

.brand-headline .hl-teal {
    color: var(--accent3)
}

.brand-desc {
    font-size: .92rem;
    color: var(--muted);
    line-height: 1.75;
    max-width: 360px;
    animation: fadeUp .6s .4s both;
}

.brand-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    animation: fadeUp .6s .5s both;
}

.b-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .03);
    font-family: var(--font-mono);
    font-size: .66rem;
    color: var(--muted);
    letter-spacing: .04em;
    transition: all .2s;
}

.b-pill:hover {
    border-color: var(--accent);
    color: var(--accent)
}

.b-pill i {
    font-size: .8rem
}

/* stats row */
.brand-stats {
    display: flex;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    animation: fadeUp .6s .6s both;
    margin-top: 32px;
}

.bs-item {
    flex: 1;
    padding: 16px 12px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.bs-item:last-child {
    border-right: none
}

.bs-val {
    font-family: var(--font-head);
    font-size: 1.6rem;
    letter-spacing: .02em;
    line-height: 1;
}

.bs-val.acc {
    color: var(--accent)
}

.bs-val.teal {
    color: var(--accent3)
}

.bs-val.red {
    color: var(--accent2)
}

.bs-lbl {
    font-family: var(--font-mono);
    font-size: .55rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 3px
}

.brand-footer-text {
    font-family: var(--font-mono);
    font-size: .62rem;
    color: var(--muted);
    letter-spacing: .06em;
    animation: fadeUp .6s .7s both;
}

/* ═══════════════════════════════════════
   RIGHT PANEL — FORM SIDE
═══════════════════════════════════════ */
.form-panel {
    display: flex;
    flex-direction: column;
        justify-content: flex-start; /* ← was: center */
    align-items: center;
    padding: 40px 40px;
    overflow-y: auto;
    animation: panelInR .8s .1s cubic-bezier(.22, 1, .36, 1) both;
    height: 100%; /* ← must fill its parent */
    min-height: 0; /* ← prevents flex blowout */
}
/* whatever wraps .form-panel */
.auth-wrapper,
.auth-layout {
    height: 100vh;
    overflow: hidden;
}

@media (max-width: 900px) {
    .form-panel {
        padding: 28px 24px;
    }
}

@keyframes panelInR {
    from {
        opacity: 0;
        transform: translateX(30px)
    }
    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.form-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center; /* ← centers lang switcher + logo */
    margin: auto; /* ← this replaces justify-content:center, centers vertically only when content fits */
    padding: 20px 0; /* breathing room top/bottom when scrolling */
}

/* Then let the tab/form sections stretch full width */
.tab-switcher,
.form-view,
.form-header {
    width: 100%;
}

/* ── TAB SWITCHER ── */
.tab-switcher {
    display: flex;
    gap: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    padding: 4px;
    margin-bottom: 32px;
}

.tab-btn {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: none;
    font-family: var(--font-mono);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    border-radius: 10px;
    transition: all .25s cubic-bezier(.22, 1, .36, 1);
    position: relative;
    overflow: hidden;
}

.tab-btn.active {
    background: var(--accent);
    color: #000;
    box-shadow: 0 4px 18px var(--accent-glow);
    transform: scale(1.02);
}

.tab-btn:not(.active):hover {
    color: var(--text);
    background: rgba(255, 255, 255, .04)
}

/* ── FORM HEADER ── */
.form-header {
    margin-bottom: 28px
}

.form-title {
    font-family: var(--font-head);
    font-size: 2.6rem;
    letter-spacing: .02em;
    line-height: 1;
    margin-bottom: 6px;
}

.form-title span {
    color: var(--accent)
}

.form-subtitle {
    font-size: .86rem;
    color: var(--muted);
    line-height: 1.5
}

/* ── FORM VIEWS ── */
.form-view {
    display: none
}

.form-view.active {
    display: block;
    animation: viewIn .35s cubic-bezier(.22, 1, .36, 1) both
}

@keyframes viewIn {
    from {
        opacity: 0;
        transform: translateY(12px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}


/* ═══════════════════════════════════════
   LANGUAGE SWITCHER
═══════════════════════════════════════ */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 4px;
    backdrop-filter: blur(8px);
}

.lang-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: none;
    background: transparent;
    border-radius: 50px;
    cursor: pointer;
    transition: color 0.25s ease;
    color: var(--muted);
    font-family: 'Readex Pro', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.lang-btn .lang-flag {
    font-size: 14px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.lang-btn .lang-code {
    font-family: 'Readex Pro', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn:hover .lang-flag {
    transform: scale(1.15);
}

.lang-btn.active {
        color: black;
}

/* Sliding pill indicator */
.lang-indicator {
    position: absolute;
    top: 4px;
    left: 0; /* ← JS will set this dynamically */
    height: calc(100% - 8px);
    background: var(--accent);
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* ← add left transition */
    z-index: 0;
    pointer-events: none;
}

/* Glow behind the active pill */
.lang-indicator::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50px;
    background:  var(--accent);
    filter: blur(6px);
    z-index: -1;
}



/* ── INPUT GROUPS ── */
.input-group {
    position: relative;
    margin-bottom: 16px;
}

.input-label {
    font-family: var(--font-mono);
    font-size: .62rem;
    color: var(--muted);
    letter-spacing: .1em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 7px;
}

.input-wrap {
    position: relative
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1rem;
    transition: color .2s;
    pointer-events: none;
    z-index: 2;
}
[dir="rtl"] .input-icon{
    left: 0 !important;
    right: 14px !important;
}

.input-field {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px 12px 42px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: .9rem;
    outline: none;
    transition: all .25s;
    -webkit-appearance: none;
}
[dir="rtl"] .input-field{
    padding: 12px 35px 12px 42px;
}

.input-field::placeholder {
    color: var(--muted)
}

.input-field:focus {
    border-color: var(--accent);
    background: rgba(21, 24, 31, .95);
    box-shadow: 0 0 0 3px rgba(232, 255, 71, .1);
}

.input-field:focus ~ .input-icon,
.input-wrap:focus-within .input-icon {
    color: var(--accent)
}

/* password toggle */
.pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: color .2s;
    z-index: 2;
}
[dir="rtl"] .pwd-toggle{
    left: 12px ;
    right: unset;
}

.pwd-toggle:hover {
    color: var(--accent)
}

/* input with suffix icon */
.input-field.has-toggle {
    padding-right: 44px
}

/* ── TWO-COL ROW ── */
.input-row {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 12px
}

@media (max-width: 420px) {
    .input-row {
        grid-template-columns:1fr
    }
}

/* ── VALIDATION STATES ── */
.input-field.valid {
    border-color: var(--accent3);
    box-shadow: 0 0 0 3px rgba(56, 232, 196, .1)
}

.input-field.invalid {
    border-color: var(--accent2);
    box-shadow: 0 0 0 3px rgba(255, 79, 90, .1)
}

.field-msg {
    font-family: var(--font-mono);
    font-size: .6rem;
    margin-top: 5px;
    padding-left: 2px;
    display: none;
}

.field-msg.visible {
    display: block
}

.field-msg.error {
    color: var(--accent2)
}

.field-msg.success {
    color: var(--accent3)
}

/* ── PASSWORD STRENGTH ── */
.pwd-strength {
    margin-top: 8px;
    display: none
}

.pwd-strength.visible {
    display: block
}

.pwd-bars {
    display: flex;
    gap: 4px;
    margin-bottom: 4px
}

.pwd-bar {
    flex: 1;
    height: 3px;
    border-radius: 99px;
    background: var(--border);
    transition: background .3s;
}

.pwd-bar.filled.weak {
    background: var(--accent2)
}

.pwd-bar.filled.fair {
    background: var(--accent4, #ff9a3c)
}

.pwd-bar.filled.good {
    background: var(--accent)
}

.pwd-bar.filled.strong {
    background: var(--accent3)
}

.pwd-strength-label {
    font-family: var(--font-mono);
    font-size: .6rem;
    color: var(--muted)
}

/* ── CHECKBOX ── */
.check-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
}

.custom-check {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    position: relative;
}

.custom-check.checked {
    background: var(--accent);
    border-color: var(--accent)
}

.custom-check.checked::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 9px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg) translate(-1px, -1px);
}

.check-label {
    font-size: .8rem;
    color: var(--muted);
    cursor: pointer;
    line-height: 1.5
}

.check-label a {
    color: var(--accent);
    text-decoration: none
}

.check-label a:hover {
    text-decoration: underline
}

/* ── SUBMIT BUTTON ── */
.submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 13px;
    background: var(--accent);
    color: #000;
    font-family: var(--font-head);
    font-size: 1.1rem;
    letter-spacing: .06em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all .25s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 0 8px 28px var(--accent-glow);
    position: relative;
    overflow: hidden;
    margin-top: 4px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .15), transparent);
    opacity: 0;
    transition: opacity .2s;
}

.submit-btn:hover::before {
    opacity: 1
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px var(--accent-glow)
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px var(--accent-glow)
}

.submit-btn .btn-loader {
    display: none
}

.submit-btn.loading .btn-text {
    display: none
}

.submit-btn.loading .btn-loader {
    display: flex;
    align-items: center;
    gap: 8px
}

.spin {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, .3);
    border-top-color: #000;
    animation: spin .6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

/* ── DIVIDER ── */
.or-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 22px 0;
}

.or-line {
    flex: 1;
    height: 1px;
    background: var(--border)
}

.or-text {
    font-family: var(--font-mono);
    font-size: .62rem;
    color: var(--muted);
    letter-spacing: .08em;
    white-space: nowrap
}

/* ── SOCIAL LOGIN ── */
.social-btns {
    display: flex;
    gap: 10px;
    margin-bottom: 22px
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 10px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    font-size: .82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
}

.social-btn:hover {
    border-color: var(--accent3);
    color: var(--accent3)
}

.social-btn i {
    font-size: 1.1rem
}

/* ── FORGOT PASSWORD ── */
.forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -8px;
    margin-bottom: 16px
}

.forgot-link {
    font-family: var(--font-mono);
    font-size: .65rem;
    color: var(--muted);
    cursor: pointer;
    transition: color .2s;
    letter-spacing: .04em;
    background: none;
    border: none;
    padding: 0;
}

.forgot-link:hover {
    color: var(--accent)
}

/* ── SWITCH PROMPT ── */
.switch-prompt {
    text-align: center;
    margin-top: 22px;
    font-size: .82rem;
    color: var(--muted);
}

.switch-link {
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    font-size: .82rem;
    padding: 0;
    transition: color .2s;
}

.switch-link:hover {
    color: var(--accent3)
}

/* ── ROLE SELECTOR ── */
.role-selector {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.role-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    padding: 14px 12px;
    cursor: pointer;
    transition: all .22s cubic-bezier(.22, 1, .36, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.role-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--role-glow, transparent);
    opacity: 0;
    transition: opacity .2s;
}

.role-card:hover::before {
    opacity: 1
}

.role-card:hover {
    transform: translateY(-2px)
}

.role-card.selected {
    border-color: var(--accent);
    background: rgba(232, 255, 71, .06);
    box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(232, 255, 71, .15);
}

.role-card.selected.teal {
    border-color: var(--accent3);
    background: rgba(56, 232, 196, .06);
    box-shadow: 0 0 0 1px var(--accent3), 0 8px 24px rgba(56, 232, 196, .15);
}

.role-ico {
    font-size: 1.8rem;
    margin-bottom: 6px
}

.role-name {
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: .04em;
    margin-bottom: 2px
}

.role-desc {
    font-family: var(--font-mono);
    font-size: .58rem;
    color: var(--muted);
    letter-spacing: .04em
}

.role-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--card);
    display: none;
    align-items: center;
    justify-content: center;
}

.role-badge::after {
    content: '';
    width: 5px;
    height: 8px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg) translate(-1px, -1px);
}

.role-card.selected .role-badge {
    display: flex
}

.role-card.selected.teal .role-badge {
    background: var(--accent3)
}

/* ── STEP INDICATOR ── */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all .3s;
}

.step-dot.active {
    background: var(--accent);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 8px var(--accent-glow)
}

.step-dot.done {
    background: var(--accent3)
}

.step-line {
    flex: 1;
    height: 1px;
    background: var(--border)
}

/* ── SUCCESS STATE ── */
.success-overlay {
    display: none;
    text-align: center;
    padding: 20px 0;
    animation: fadeUp .5s both;
}

.success-overlay.show {
    display: block
}

.success-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(56, 232, 196, .12);
    border: 2px solid var(--accent3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    animation: scaleIn .4s cubic-bezier(.34, 1.56, .64, 1) both;
}

@keyframes scaleIn {
    from {
        transform: scale(0)
    }
    to {
        transform: scale(1)
    }
}

.success-title {
    font-family: var(--font-head);
    font-size: 2rem;
    letter-spacing: .04em;
    margin-bottom: 8px
}

.success-title span {
    color: var(--accent3)
}

.success-sub {
    font-size: .86rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 24px
}

.success-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 12px;
    background: var(--accent3);
    color: #000;
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: .04em;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(56, 232, 196, .3);
    transition: all .2s;
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(56, 232, 196, .45)
}

/* ── FORGOT PASSWORD VIEW ── */
.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .68rem;
    letter-spacing: .06em;
    cursor: pointer;
    transition: color .2s;
    padding: 0;
    margin-bottom: 20px;
}

.back-btn:hover {
    color: var(--accent)
}

.back-btn i {
    font-size: .85rem
}

/* ── RIPPLE ── */
.ripple {
    position: relative;
    overflow: hidden
}

.ri {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 0, 0, .15);
    animation: rAnim .5s ease-out forwards;
    pointer-events: none;
    z-index: 10;
}

@keyframes rAnim {
    from {
        transform: scale(0);
        opacity: 1
    }
    to {
        transform: scale(4);
        opacity: 0
    }
}

/* ── TOAST ── */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .84rem;
    min-width: 260px;
    transform: translateX(120%);
    opacity: 0;
    transition: all .35s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
    pointer-events: none;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all
}

.toast.success {
    border-color: rgba(56, 232, 196, .35)
}

.toast.error {
    border-color: rgba(255, 79, 90, .35)
}

.toast i {
    font-size: 1.2rem
}

.toast.success i {
    color: var(--accent3)
}

.toast.error i {
    color: var(--accent2)
}

/* ── FLOATING PARTICLES ── */
.particle {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
    animation: floatParticle var(--dur, 12s) var(--delay, 0s) ease-in-out infinite;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: var(--op, .4)
    }
    33% {
        transform: translate(var(--tx, 30px), var(--ty, -40px)) rotate(120deg);
        opacity: calc(var(--op, .4) * 1.5)
    }
    66% {
        transform: translate(var(--tx2, -20px), var(--ty2, -80px)) rotate(240deg);
        opacity: var(--op, .4)
    }
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ═══════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
═══════════════════════════════════════ */
@media (max-width: 900px) {
    .brand-panel {
        padding: 28px 24px 24px
    }

    .brand-headline {
        font-size: clamp(2.2rem, 8vw, 3.5rem)
    }

    .brand-main {
        padding: 20px 0
    }

    .brand-stats {
        display: none
    }

    .form-panel {
        padding: 28px 24px 40px
    }

    .form-container {
        max-width: 100%
    }
}

@media (max-width: 480px) {
    .form-panel {
        padding: 24px 18px 36px
    }

    .brand-panel {
        padding: 22px 18px 18px
    }

    .social-btns {
        flex-direction: column
    }

    .social-btn {
        width: 100%
    }

    .form-title {
        font-size: 2.2rem
    }

    .brand-headline {
        font-size: 2.4rem
    }

    .brand-desc {
        display: none
    }
}

@media (min-width: 901px) {
    .brand-panel {
        position: sticky;
        top: 0;
        height: 100vh;
        overflow-y: auto;
    }

    .form-panel {
        height: 100vh;
        overflow-y: auto;
    }
}







/*profile zone */

.wrapper {
    max-width: 480px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
/*    font-family: var(--font-sans);*/
}

/* ── Header ── */
.card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 30px;
    letter-spacing: .04em;
    color: var(--text);
    margin-bottom: 28px;
}

/* ── Format pills ── */
.format-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.pill {
    font-family: 'Readex Pro', sans-serif;
    font-size: 9px;
    letter-spacing: .08em;
    padding: 3px 9px;
    border-radius: 20px;
    border: 1px solid var(--border);
    color: var(--muted);
    background: var(--surface);
}

/* ── Upload zone ── */
.upload-zone {
    position: relative;
    width: 100%;
    border-radius: 14px;
    border: 1.5px dashed var(--border);
    /*background: var(--surface);*/
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s, background .2s;
}

.upload-zone:hover {
    border-color: var(--accent3);
    background: var(--accent3-faint);
}

.upload-zone.dragover {
    border-color: var(--accent);
    background: var(--accent-faint);
}

.upload-zone.has-image {
    border-style: solid;
    border-color: var(--border);
    cursor: default;
}

/* ── Upload idle state ── */
.upload-idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 2rem;
}

.upload-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s;
    margin-bottom: 4px;
}

.upload-zone:hover .upload-icon {
    border-color: var(--accent3);
}

.upload-icon svg {
    width: 22px;
    height: 22px;
}

.upload-text-main {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.upload-text-sub {
    font-family: 'Readex Pro', sans-serif;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .05em;
}

/* ── Crop container ── */
.crop-container {
    position: relative;
    width: 100%;
    height: 410px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface);
}

.crop-container.active {
    display: flex;
}

/* ── Crop viewport (circular frame) ── */
.crop-viewport {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    flex-shrink: 0;
    border: 2.5px solid var(--accent3);
    /*box-shadow: 0 0 0 9999px var(--surface);*/
}

.crop-viewport.dragging {
    cursor: grabbing;
}

.crop-img {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
    pointer-events: none;
    will-change: transform;
}

/* ── Crop controls ── */
.crop-hint {
    font-family: 'Readex Pro', sans-serif;
    font-size: 10px;
    color: var(--muted);
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: .04em;
}

.zoom-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    width: 280px;
    color: var(--muted);
}

.zoom-row input[type="range"] {
    flex: 1;
    accent-color: var(--accent3);
}

.crop-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}

/* ── Buttons ── */
.ov-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Readex Pro', sans-serif;
    font-size: 10px;
    letter-spacing: .06em;
    font-weight: 700;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    transition: all .15s;
}

.ov-btn:hover {
    background: var(--surface);
}

.ov-btn.confirm {
    background: var(--accent3-faint);
    border-color: var(--accent3);
    color: var(--accent3);
}

.ov-btn.confirm:hover {
    background: var(--accent3);
    color: #0a0c10;
}

.ov-btn.remove {
    background: rgba(255, 79, 90, .1);
    border-color: var(--accent2);
    color: var(--accent2);
}

.ov-btn.remove:hover {
    background: var(--accent2);
    color: #fff;
}

.ov-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* ── Preview final state ── */
.preview-final {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 1.5rem 1rem;
}

.preview-final.active {
    display: flex;
}

.preview-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid var(--accent3);
}

.preview-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-label {
    font-family: 'Readex Pro', sans-serif;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .06em;
}

.preview-actions {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

/* ── Bottom row ── */
.bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.file-meta {
    font-family: 'Readex Pro', sans-serif;
    font-size: 10px;
    color: var(--muted);
    letter-spacing: .04em;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.skip-btn {
    font-family: 'Readex Pro', sans-serif;
    font-size: 10px;
    letter-spacing: .08em;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color .15s;
}

.skip-btn:hover {
    color: var(--text);
}

/* ── Divider ── */
.divider {
    height: 1px;
    background: var(--border);
    margin-top: 24px;
}

/* ── Decorative reticle ── */
.reticle {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .18;
}

/* ── Hidden file input ── */
#file-input {
    display: none;
}


/* ── VALIDATION STATES ── */
.input-field.valid {
    border-color: var(--accent3);
    box-shadow: 0 0 0 3px rgba(56, 232, 196, .1)
}

.input-field.invalid {
    border-color: var(--accent2);
    box-shadow: 0 0 0 3px rgba(255, 79, 90, .1)
}

.field-msg {
    font-family: 'Readex Pro', sans-serif;
    font-size: .6rem;
    margin-top: 5px;
    padding-left: 2px;
    display: none;
}

.field-msg.visible {
    display: block
}

.field-msg.error {
    color: var(--accent2)
}

.field-msg.success {
    color: var(--accent3)
}

/*end profile*/
#view-register .input-field.invalid {
    border-color: #ff4f5a !important;
    box-shadow: 0 0 0 3px rgba(255, 79, 90, .12) !important;
}

#view-register .server-field-error {
    margin-top: 6px;
    color: #ff4f5a;
    font-size: .72rem;
    line-height: 1.4;
    font-family: var(--font-mono, monospace);
}
