/* ================================================================
   signin.css — Setadyar Sign-in Page  |  Full Responsive Rewrite
   ================================================================ */

* {
    font-family: var(--font-primary);
}

:root {
    --accent-color: #0a5c46;
    --accent-rgb: 10, 92, 70;
    --success-base: #0a5c46;
    --error-base: #A52522;
    --warning-text: #f59e0b;
    --surface: #FFFFFF;
    --input-bg: rgba(255, 255, 255, 0.2);
    --input-bg-focus: rgb(255, 255, 255);
    --text-primary: #0D0D0D;
    --text-secondary: #666666;
    --border-color: rgba(0, 0, 0, 0.1);
    --color-background-primary: var(--surface);
    --color-background-secondary: var(--input-bg);
    --color-text-primary: var(--text-primary);
    --color-text-secondary: var(--text-secondary);
    --color-text-tertiary: rgba(102, 102, 102, 0.7);
    --color-border-secondary: var(--border-color);
    --color-border-tertiary: rgba(0, 0, 0, 0.05);
    --brand-green: #0a5c46;
    --brand-teal: #2dd4bf;
}

html,
body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ─────────────────────────────────────────
   Layout Wrapper
───────────────────────────────────────── */
.sw {
    font-family: var(--font-primary);
    direction: rtl;
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    border: 0.5px solid var(--color-border-tertiary);
    height: 100%;
    max-height: calc(100vh - 40px);
    width: calc(100% - 40px);
    position: relative;
}

/* ─────────────────────────────────────────
   Bridge Ball (decorative)
───────────────────────────────────────── */
.sw-bridge-ball {
    position: absolute;
    top: 50%;
    left: 53.5%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
    animation: ballFloat 4s ease-in-out infinite;
    pointer-events: none;
}

.sw-bridge-ball::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), transparent);
}

@keyframes ballFloat {
    0%, 100% { transform: translate(-50%, -50%) translateY(0) scale(1); }
    50%       { transform: translate(-50%, -50%) translateY(-20px) scale(1.05); }
}

/* ─────────────────────────────────────────
   Left Panel
───────────────────────────────────────── */
.sw-left {
    flex: 1.15;
    background: var(--brand-green);
    display: flex;
    flex-direction: column;
    padding: 24px 28px 20px;
    gap: 18px;
    position: relative;
}

.sw-left::-webkit-scrollbar { width: 6px; }
.sw-left::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
.sw-left::-webkit-scrollbar-thumb { background: rgba(45,212,191,0.3); border-radius: 3px; }
.sw-left::-webkit-scrollbar-thumb:hover { background: rgba(45,212,191,0.5); }

.sw-left::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(45, 212, 191, 0.06);
    pointer-events: none;
}

.sw-left::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -80px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.05);
    pointer-events: none;
}

/* ─────────────────────────────────────────
   Brand Header
───────────────────────────────────────── */
.brand-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 4px;
    margin-bottom: 12px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.home-btn-header {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.home-btn-header:hover {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.home-btn-header:active { transform: translateY(0); }

.brand-title-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.brand-main-title {
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.8px;
    line-height: 1;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    margin: 0;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Old home-btn hidden */
.home-btn { display: none; }

/* ─────────────────────────────────────────
   Demo Slider Wrap
   KEY FIX: slider-dots moved OUTSIDE the
   demo-slider-wrap so they never overlap
   the slide content. flex-direction column
   + explicit gap keeps them separated.
───────────────────────────────────────── */
.demo-slider-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;                    /* gap managed per child below */
    padding: 10px 0 6px;
    box-sizing: border-box;
    min-height: 0;
    max-height: 396px;
    position: relative;
    z-index: 1;
    flex-shrink: 1;
    overflow: visible;
}

/* The actual sliding track */
.demo-slider {
    width: 100%;
    max-width: 336px;
    display: flex;
    align-items: stretch;
    overflow: visible;
    border-radius: 14px;
    position: relative;
    /* 
       FIX: let the slider grow to fill available space MINUS the dots row.
       We allocate 32px for the dots area below.
    */
    flex: 1;
    min-height: 0;
}

/* Slides */
.demo-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.demo-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

/* Standardize imported Home demo frame inside signin slide 1 */
.sw-left .demo-slide[data-slide="0"] .landing-demo {
    width: 100%;
    max-width: 360px;
    min-height: 0;
    height: 100%;
    max-height: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.sw-left .demo-slide[data-slide="0"] .demo-device {
    inset: 16px;
    height: auto;
    min-height: 0;
    box-sizing: border-box;
}

.sw-left .demo-slide[data-slide="0"] .demo-body,
.sw-left .demo-slide[data-slide="0"] .demo-card,
.sw-left .demo-slide[data-slide="0"] .demo-scroll {
    min-height: 0;
    box-sizing: border-box;
}

/* ─────────────────────────────────────────
   Slider Dots
   FIX: pulled OUT of the slider track so
   they sit below it with clear clearance.
───────────────────────────────────────── */
.slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    /* Clear gap from the demo slider above */
    padding-top: 12px;
    padding-bottom: 4px;
    flex-shrink: 0;
    /* Ensure dots are always on top */
    position: relative;
    z-index: 10;
}

.sdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s, transform 0.3s, width 0.3s;
}

.sdot.active {
    background: var(--brand-teal);
    width: 22px;
    border-radius: 4px;
}

/* ─────────────────────────────────────────
   Slide 1 — CRM Demo Device
───────────────────────────────────────── */
.landing-demo {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.demo-device {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.demo-topbar {
    background: rgba(0, 0, 0, 0.30);
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-teal);
    display: inline-block;
}

.demo-topbar-label {
    margin-right: auto;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    direction: ltr;
}

.demo-body {
    padding: 12px;
    color: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.demo-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 12px 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: visible;
    box-sizing: border-box;
}

.demo-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.demo-card-name {
    font-weight: 800;
    color: #fff;
    font-size: 13px;
}

.demo-pill {
    font-size: 9px;
    background: rgba(45, 212, 191, 0.18);
    color: #5eead4;
    border: 1px solid rgba(45, 212, 191, 0.35);
    border-radius: 20px;
    padding: 2px 8px;
    font-weight: 600;
    direction: ltr;
    white-space: nowrap;
}

.demo-scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 0;
    padding: 8px 0;
    touch-action: none;
    pointer-events: none;
    box-sizing: border-box;
    width: 100%;
}

.demo-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    will-change: transform;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-step {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 10px;
    padding: 16px 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
    transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    width: 100%;
    justify-content: space-between;
}

.demo-step.active-step {
    background: rgba(45, 212, 191, 0.10);
    border-color: rgba(45, 212, 191, 0.30);
    box-shadow:
        0 4px 16px rgba(45, 212, 191, 0.12),
        inset 0 1px 0 rgba(45, 212, 191, 0.15);
}

.demo-step-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.demo-step-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(45, 212, 191, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    color: #5eead4;
}

.demo-step-icon i {
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-step-title {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    flex: 1;
    line-height: 1.4;
    min-height: 17px;
}

.demo-step-badge {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.80);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 3px 9px;
    font-weight: 700;
    direction: ltr;
    white-space: nowrap;
    align-self: center;
    min-width: 40px;
    min-height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-step-badge.deal {
    background: rgba(45, 212, 191, 0.18);
    color: #5eead4;
    border-color: rgba(45, 212, 191, 0.32);
}

.demo-step-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.demo-kpi-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dkr-label {
    font-size: 9.5px;
    color: rgba(255, 255, 255, 0.60);
    min-width: 36px;
    font-weight: 500;
}

.dkr-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    overflow: hidden;
}

.dkr-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(45,212,191,0.7), rgba(16,185,129,0.9));
    border-radius: 3px;
    width: 0;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Skeleton shimmer */
@keyframes skeletonShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.demo-step.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.08) 40%,
        rgba(255,255,255,0.14) 50%,
        rgba(255,255,255,0.08) 60%,
        transparent 100%);
    animation: skeletonShimmer 1.6s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
}

.demo-step.loading .demo-step-title,
.demo-step.loading .demo-step-badge,
.demo-step.loading .dkr-label {
    background: rgba(255,255,255,0.10);
    color: transparent;
    border-radius: 4px;
    border-color: transparent;
    user-select: none;
}

.demo-step.loading .dkr-bar { background: rgba(255,255,255,0.10); }
.demo-step.loading .demo-step-icon { background: rgba(255,255,255,0.10); color: transparent; }

/* ─────────────────────────────────────────
   Slide 2 — Chart / SVG Scene
───────────────────────────────────────── */
.scene {
    width: 320px;
    height: 310px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.cluster {
    position: absolute;
    transform-origin: center;
}

.c1 { top: 8px;    left: 4px;   animation: float1 6s ease-in-out infinite; }
.c2 { top: 18px;   right: 4px;  animation: float2 7s ease-in-out infinite; }
.c3 {
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    animation: float3 8s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50%       { transform: translateY(-10px) rotate(1deg); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(1deg); }
    50%       { transform: translateY(-8px) rotate(-1deg); }
}
@keyframes float3 {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-7px); }
}

.panel   { border-radius: 12px; }
.p-main  { background: rgba(255,255,255,0.11); border: 1px solid rgba(255,255,255,0.18); }
.p-card  { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; }

.bar { border-radius: 3px; transform-origin: bottom; }
.b1 { animation: grow1 2.4s ease-in-out infinite; }
.b2 { animation: grow2 2.4s ease-in-out infinite 0.3s; }
.b3 { animation: grow3 2.4s ease-in-out infinite 0.6s; }
.b4 { animation: grow4 2.4s ease-in-out infinite 0.9s; }

@keyframes grow1 { 0%,100% { transform: scaleY(0.7); } 50% { transform: scaleY(1); } }
@keyframes grow2 { 0%,100% { transform: scaleY(0.5); } 50% { transform: scaleY(0.85); } }
@keyframes grow3 { 0%,100% { transform: scaleY(0.9); } 50% { transform: scaleY(0.6); } }
@keyframes grow4 { 0%,100% { transform: scaleY(0.6); } 50% { transform: scaleY(1); } }

.flow-line  { stroke-dasharray: 6 4;  animation: dash 1.8s linear infinite; }
.flow-line2 { stroke-dasharray: 4 6;  animation: dash 2.4s linear infinite reverse; }

@keyframes dash { to { stroke-dashoffset: -100; } }

.core-pulse { animation: cpulse 2s ease-in-out infinite; }
@keyframes cpulse {
    0%,100% { opacity: 0.6; transform: scale(0.95); }
    50%      { opacity: 1;   transform: scale(1.05); }
}

.conn { stroke-dasharray: 8 6; stroke-dashoffset: 0; animation: connflow 3s linear infinite; }
@keyframes connflow { to { stroke-dashoffset: -100; } }

/* ─────────────────────────────────────────
   Password-reset page — multi-step demo scene
───────────────────────────────────────── */
.pwreset-scene {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.pwreset-step {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.94);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
}

.pwreset-step.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

.pwreset-panel {
    width: 230px;
    padding: 26px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    box-sizing: border-box;
}

.pwreset-icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 4px;
}

.pwreset-icon-circle--accent {
    background: rgba(45, 212, 191, 0.18);
    color: #2dd4bf;
    box-shadow: 0 0 0 6px rgba(45, 212, 191, 0.08);
}

.pwreset-icon-circle--info {
    background: rgba(6, 182, 212, 0.18);
    color: #22d3ee;
    box-shadow: 0 0 0 6px rgba(6, 182, 212, 0.08);
}

.pwreset-icon-circle--success {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.1);
}

.pwreset-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
}

.pwreset-sub {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    margin-top: -6px;
}

.pwreset-transit-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.pwreset-transit-icon {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
}

.pwreset-transit-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2dd4bf;
    animation: pwresetTransit 1.4s ease-in-out infinite;
}

.pwreset-transit-dot:nth-child(3) { animation-delay: 0.15s; }
.pwreset-transit-dot:nth-child(4) { animation-delay: 0.3s; }

@keyframes pwresetTransit {
    0%, 100% { opacity: 0.25; transform: translateY(0); }
    50%      { opacity: 1;    transform: translateY(-3px); }
}

.pwreset-otp-row {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.pwreset-otp-box {
    width: 26px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
    animation: pwresetOtpFill 3s ease-in-out infinite;
    animation-fill-mode: both;
}

.pwreset-otp-box:nth-child(1) { animation-delay: 0.1s; }
.pwreset-otp-box:nth-child(2) { animation-delay: 0.3s; }
.pwreset-otp-box:nth-child(3) { animation-delay: 0.5s; }
.pwreset-otp-box:nth-child(4) { animation-delay: 0.7s; }
.pwreset-otp-box:nth-child(5) { animation-delay: 0.9s; }
.pwreset-otp-box:nth-child(6) { animation-delay: 1.1s; }

@keyframes pwresetOtpFill {
    0%   { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); transform: scale(1); }
    8%   { background: rgba(6, 182, 212, 0.35); border-color: #22d3ee; transform: scale(1.08); }
    18%, 100% { background: rgba(6, 182, 212, 0.18); border-color: rgba(6, 182, 212, 0.4); transform: scale(1); }
}

.pwreset-check {
    font-size: 34px;
    color: #34d399;
    margin-top: 4px;
    animation: pwresetCheckIn 0.6s ease;
    animation-fill-mode: both;
}

@keyframes pwresetCheckIn {
    0%   { transform: scale(0.3); opacity: 0; }
    60%  { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.pwreset-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.pwreset-nav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: background 0.3s ease, transform 0.3s ease;
}

.pwreset-nav-dot.active {
    background: #2dd4bf;
    transform: scale(1.3);
}

/* ─────────────────────────────────────────
   Brand Bottom — Tagline + Feature Grid
───────────────────────────────────────── */
.brand-bottom {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
    padding-bottom: 4px;
    margin-top: auto;
}

.tagline {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    margin: 0;
    padding: 0 4px;
}

.tagline-accent {
    color: var(--brand-teal);
    font-weight: 800;
}

.feat-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 8px;
    border-radius: 10px;
    border-right: 2px solid rgba(45, 212, 191, 0.35);
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.25s ease, border-color 0.25s ease;
}

.feat-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(45, 212, 191, 0.6);
}

.feat-ic-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(45, 212, 191, 0.12);
    flex-shrink: 0;
}

.feat-ic {
    font-size: 13px;
    color: var(--brand-teal);
}

.feat-text {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.45;
    font-weight: 500;
}

/* ─────────────────────────────────────────
   Right Panel
───────────────────────────────────────── */
.sw-right {
    flex: 1;
    background: var(--color-background-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 30px;
    border-left: 0.5px solid var(--color-border-tertiary);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.03);
    overflow-y: auto;
}

.auth-container {
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
}

.auth-logo-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 22px;
}

.auth-logo-centered .auth-logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.auth-card.card {
    max-width: 100%;
    background: transparent;
    border-radius: 16px;
    border: none;
    padding: 28px 40px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.form-title {
    font-size: 21px;
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 5px;
    letter-spacing: -0.3px;
}

.form-sub {
    font-size: 13.5px;
    color: var(--color-text-secondary);
    margin: 0 0 18px;
    line-height: 1.5;
}

.form-label {
    font-size: 12.5px;
    color: var(--color-text-secondary);
    margin-bottom: 7px;
    display: block;
    font-weight: 600;
}

.form-input {
    width: 100%;
    box-sizing: border-box;
    border: 1.5px solid var(--color-border-secondary);
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 14px;
    font-family: var(--font-primary);
    background: var(--color-background-secondary);
    color: var(--color-text-primary);
    outline: none;
    transition: all 0.3s ease;
    caret-color: var(--accent-color);
}

.form-input::placeholder {
    color: var(--color-text-tertiary);
    font-size: 13px;
}

.form-input:focus {
    border-color: var(--accent-color);
    background: rgba(255,255,255,0.98);
    box-shadow: 0 0 0 3px rgba(67,120,57,0.08);
}

.btn-main {
    width: 100%;
    padding: 13px 20px;
    background: #0a5c46;
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 14.5px;
    font-weight: 700;
    font-family: var(--font-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 9px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(67,120,57,0.2);
}

.btn-main:hover {
    background: #0a5c46;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(67,120,57,0.3);
}

.btn-main:active  { transform: translateY(0); }
.btn-main:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Button loading state */
.btn.loading,
.btn-main.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn.loading::after,
.btn-main.loading::after {
    content: "";
    position: absolute;
    width: 20px; height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: btnSpinner 0.8s linear infinite;
}

@keyframes btnSpinner { to { transform: rotate(360deg); } }

/* Button success state */
.btn.success,
.btn-main.success {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: transparent !important;
    pointer-events: none;
}

.btn.success::after,
.btn-main.success::after {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.2rem;
}

/* Button error state */
.btn.error,
.btn-main.error {
    background: var(--error-base) !important;
    border-color: var(--error-base) !important;
    animation: btnShake 0.4s ease-in-out;
}

@keyframes btnShake {
    0%,100% { transform: translateX(0); }
    20%,60%  { transform: translateX(-6px); }
    40%,80%  { transform: translateX(6px); }
}

.btn:disabled,
.btn-main:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(0.5);
    transform: none !important;
    box-shadow: none !important;
}

/* Step hint */
.step-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 11px 0;
    border-top: 1px solid var(--color-border-tertiary);
}

.step-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(67,120,57,0.15);
}

.step-dot.inactive { background: var(--color-border-secondary); }

.step-label {
    font-size: 12px;
    color: var(--color-text-tertiary);
    font-weight: 600;
}

.forgot-link {
    text-align: center;
    margin-top: 10px;
    font-size: 12px;
    color: var(--color-text-tertiary);
}

.forgot-link a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

/* ─────────────────────────────────────────
   Features Cards (bottom of auth card)
───────────────────────────────────────── */
.features-divider {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-tertiary);
}

.features-intro {
    font-size: 11.5px;
    color: var(--color-text-primary);
    text-align: center;
    margin: 0 0 12px;
    font-weight: 600;
    line-height: 1.55;
}

.features-cards {
    display: flex;
    flex-direction: row;
    gap: 9px;
    justify-content: space-between;
}

.feature-mini-card {
    flex: 1;
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(249,250,251,0.9));
    border: 1px solid var(--color-border-secondary);
    border-radius: 10px;
    padding: 9px 11px;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: right;
    gap: 9px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    position: relative;
    /* FIX: removed overflow:hidden that was causing the red dashed outline in DevTools */
}

.feature-mini-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(29,158,117,0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 10px;          /* match card radius */
}

.feature-mini-card:hover {
    border-color: rgba(29, 158, 117, 0.3);
    box-shadow: 0 4px 12px rgba(29,158,117,0.1);
    transform: translateY(-2px);
}

.feature-mini-card:hover::before { opacity: 1; }

.feature-mini-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.feature-mini-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.feature-mini-desc {
    font-size: 10px;
    color: var(--color-text-tertiary);
    font-weight: 500;
    white-space: nowrap;
}

.feature-mini-icon {
    font-size: 19px;
    color: var(--brand-green);
    opacity: 0.85;
    flex-shrink: 0;
}

/* Form steps */
.form-step { display: none; }
.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-navigation {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.form-navigation .btn { flex: 1; }

/* Generic btn */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: var(--font-primary);
    position: relative;
    overflow: hidden;
}

.btn-primary { background: #0a5c46; color: #ffffff; }
.btn-primary:hover { background: #0a5c46 !important; transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: #0a5c46;
}

.btn-outline:hover {
    background: #0a5c46;
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
}

.error-message {
    color: var(--error-base);
    font-size: 0.875rem;
    margin-top: 8px;
    min-height: 1.25rem;
    font-weight: 500;
}

/* Password wrapper */
.password-input-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.password-input-wrapper .form-input {
    width: 100%;
    padding-right: 45px !important;
    padding-left: 14px !important;
    direction: ltr;
    text-align: left;
}

.password-input-wrapper .form-input::placeholder {
    direction: rtl;
    text-align: right;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 10;
}

.password-toggle-btn:hover {
    background-color: rgba(0,0,0,0.05);
    color: var(--accent-color);
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px; height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    user-select: none;
}

/* Password strength */
.password-strength {
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
    position: relative;
}

.password-strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.4s ease, background-color 0.4s ease;
    border-radius: 3px;
}

.password-strength-text {
    position: absolute;
    left: 0;
    top: -22px;
    font-size: 0.75rem;
    font-weight: 600;
}

.password-strength-text.weak   { color: var(--error-base); }
.password-strength-text.medium { color: var(--warning-text); }
.password-strength-text.strong { color: var(--success-base); }

.password-strength-weak   { width: 33%;  background: var(--error-base); }
.password-strength-medium { width: 66%;  background: var(--warning-text); }
.password-strength-strong { width: 100%; background: var(--success-base); }

/* Loading state */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.loading-state i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
    animation: spin 1s linear infinite;
}

.loading-state p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ─────────────────────────────────────────
   Notifications
───────────────────────────────────────── */
#notificationContainer {
    position: fixed;
    top: 18px; right: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 99999;
    pointer-events: none;
    max-width: min(92vw, 430px);
}

.notification {
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 700;
    opacity: 0;
    transform: translateX(24px) scale(0.98);
    transition: transform 0.28s ease, opacity 0.28s ease;
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    box-shadow: 0 12px 28px rgba(15,23,42,0.13);
    background: linear-gradient(120deg, rgba(var(--accent-rgb),0.16), rgba(255,255,255,0.68));
    color: var(--text-primary);
    min-width: 280px;
    max-width: 100%;
    line-height: 1.55;
}

.notification::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    border-radius: 0 10px 10px 0;
    background: var(--accent-color);
}

.notification.show  { opacity: 1; transform: translateX(0) scale(1); }
.notification.success { border-color: rgba(16,185,129,0.35); }
.notification.success::before { background: #10b981; }
.notification.error   { border-color: rgba(239,68,68,0.35); }
.notification.error::before   { background: #ef4444; }
.notification.warning::before { background: #f59e0b; }
.notification.info::before    { background: var(--accent-color); }

/* ─────────────────────────────────────────
   Modal
───────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(-50px); }
    to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 { margin: 0; }

.close-modal {
    background: none; border: none;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.close-modal:hover { background-color: var(--border-color); }

.modal-body   { padding: 20px; }
.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}







.alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; }
.alert-warning {
    background-color: rgba(255,193,7,0.1);
    border: 1px solid rgba(255,193,7,0.3);
    color: #856404;
}
.alert-info {
    background-color: rgba(var(--accent-rgb),0.08);
    border: 1px solid rgba(var(--accent-rgb),0.2);
}

/* OTP */
.resend-timer {
    text-align: center;
    margin: 16px 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.otp-message {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin: 0 0 14px;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ─────────────────────────────────────────────────────────────

   Desktop ≥ 1025px       : default above
   Tablet  769 – 1024px   : two-column, left panel compact
   Mobile  ≤ 768px        : single column, left panel hidden
   Mobile  ≤ 480px        : extra compact
   Height  ≤ 900px        : tighten vertical rhythm
   Height  ≤ 700px        : more aggressive compression
   Height  ≤ 650px        : maximum compression
═══════════════════════════════════════════════════════════════ */

/* ── TABLET (769 – 1024px) ───────────────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
    .sw {
        max-height: calc(100vh - 24px);
        width: calc(100% - 24px);
        border-radius: 14px;
    }

    /* Left panel: narrower but still visible */
    .sw-left {
        flex: 1;
        padding: 20px 20px 16px;
        gap: 14px;
        min-width: 300px;
        max-width: 380px;
    }

    /* Bridge ball: reposition to the new split point */
    .sw-bridge-ball {
        left: 50%;
        width: 50px;
        height: 50px;
    }

    .brand-header { margin-bottom: 8px; }

    .home-btn-header {
        width: 40px; height: 40px;
        font-size: 16px;
        border-radius: 10px;
    }

    .brand-main-title { font-size: 22px; }
    .brand-subtitle   { font-size: 13px; }

    /* Slider: tighter on tablet */
    .demo-slider-wrap {
        max-height: 348px;
        gap: 0;
        padding: 8px 0 6px;
    }

    .demo-slider {
        max-width: 100%;
    }

    /* Dots: keep clear vertical separation */
    .slider-dots { padding-top: 10px; }

    /* Scene slide */
    .scene {
        width: 260px;
        height: 250px;
    }

    .brand-bottom { gap: 10px; }

    .tagline { font-size: 13px; }

    .feat-grid { gap: 12px; }

    .feat-item-card {
        padding: 10px 8px;
        min-height: 84px;
        gap: 6px;
    }

    .feat-ic       { font-size: 20px; }
    .feat-item-text { font-size: 10px; }

    /* Right panel */
    .sw-right { padding: 16px 22px; }

    .auth-card { padding: 24px 28px; }

    .auth-logo-centered { margin-bottom: 16px; }
    .auth-logo-centered .auth-logo-image { width: 68px; height: 68px; }

    .form-title { font-size: 19px; }

    .features-cards { gap: 7px; }

    .feature-mini-card { padding: 8px 9px; gap: 7px; }
    .feature-mini-title { font-size: 11px; }
    .feature-mini-desc  { font-size: 9.5px; }
    .feature-mini-icon  { font-size: 17px; }
}

/* ── MOBILE (≤ 768px) ────────────────────────────────────────── */
@media (max-width: 768px) {
    html, body {
        overflow: auto;
        align-items: flex-start;
    }

    .sw {
        flex-direction: column;
        border-radius: 0;
        height: auto;
        min-height: 100vh;
        max-height: none;
        width: 100%;
    }

    /* Hide decorative ball on mobile */
    .sw-bridge-ball { display: none; }

    /* Left panel hidden on mobile */
    .sw-left  { display: none; }

    .brand-header { display: none; }

    /* Right panel full width */
    .sw-right {
        min-height: 100vh;
        padding: 28px 20px 32px;
        justify-content: flex-start;
        border-left: none;
        box-shadow: none;
        overflow-y: visible;
    }

    .auth-container { max-width: 100%; }

    .auth-logo-centered {
        margin-bottom: 24px;
        margin-top: 8px;
    }

    .auth-logo-centered .auth-logo-image {
        width: 72px; height: 72px;
    }

    .auth-card {
        padding: 24px 20px;
        box-shadow: none;
        border: none;
        background: transparent;
    }

    .form-title { font-size: 20px; }
    .form-sub   { font-size: 13px; }

    /* Features cards: 2 per row on mobile */
    .features-cards {
        flex-wrap: wrap;
        gap: 8px;
    }

    .feature-mini-card {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        padding: 10px 10px;
        gap: 8px;
    }

    .feature-mini-title { font-size: 11.5px; }
    .feature-mini-desc  { font-size: 9.5px; white-space: normal; }
    .feature-mini-icon  { font-size: 18px; }

    /* Notifications */
    #notificationContainer {
        right: 0; left: 0;
        top: 10px;
        align-items: center;
        padding: 0 10px;
        max-width: 100vw;
    }

    .notification {
        min-width: 0;
        width: min(100%, 420px);
    }

    /* Modal */


    .modal-footer { flex-direction: column; }
    .modal-footer .btn { width: 100%; }
}

/* ── MOBILE SMALL (≤ 480px) ──────────────────────────────────── */
@media (max-width: 480px) {
    .auth-container { padding: 0; }

    .auth-card { padding: 20px 16px; }

    .auth-logo-centered .auth-logo-image { width: 64px; height: 64px; }

    .form-input {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .form-title { font-size: 18px; }

    .features-cards { gap: 7px; }

    .feature-mini-card {
        padding: 9px 8px;
        gap: 7px;
    }

    .feature-mini-title { font-size: 11px; }
    .feature-mini-desc  { font-size: 9px; }
    .feature-mini-icon  { font-size: 17px; }
}

/* ═══════════════════════════════════════════════════════════════
   HEIGHT-BASED BREAKPOINTS  (desktop / tablet vertical)
═══════════════════════════════════════════════════════════════ */

/* ── 900px – 1080px height ───────────────────────────────────── */
@media (min-height: 900px) and (max-height: 1080px) {
    .demo-slider-wrap { max-height: 376px; }
    .brand-bottom     { gap: 13px; }
    .feat-item-card   { min-height: 86px; }
}

/* ── ≤ 900px height ──────────────────────────────────────────── */
@media (max-height: 900px) {
    .sw-left {
        padding: 20px 24px 16px;
        gap: 14px;
    }

    .brand-header { margin-bottom: 8px; }

    .home-btn-header { width: 40px; height: 40px; font-size: 22px; }
    .brand-main-title { font-size: 24px; }
    .brand-subtitle   { font-size: 14px; }

    .demo-slider-wrap { max-height: 328px; padding: 8px 0 6px; }
    .demo-slider      { /* inherits from flex:1 */ }
    .sw-left .demo-slide[data-slide="0"] .demo-device { inset: 14px; }

    /* Dots: keep breathing room */
    .slider-dots { padding-top: 10px; }

    .tagline        { font-size: 13.5px; }
    .feat-grid      { gap: 11px; }
    .feat-item-card { padding: 9px 9px; min-height: 80px; }
    .feat-ic        { font-size: 20px; }
    .feat-item-text { font-size: 10px; }

    .auth-card {
        padding: 22px 36px;
    }

    .auth-logo-centered {
        margin-bottom: 16px;
    }

    .auth-logo-centered .auth-logo-image {
        width: 68px; height: 68px;
    }
}

/* ── ≤ 700px height ──────────────────────────────────────────── */
@media (max-height: 700px) {
    .sw-left {
        padding: 14px 20px 12px;
        gap: 10px;
    }

    .home-btn-header { width: 38px; height: 38px; font-size: 20px; border-radius: 10px; }
    .brand-main-title { font-size: 22px; }
    .brand-subtitle   { font-size: 12px; }
    .brand-header     { gap: 10px; margin-bottom: 6px; }

    .demo-slider-wrap { max-height: 228px; padding: 6px 0 4px; }

    /* 
       KEY FIX for low heights: give slider a fixed explicit height
       so dots don't bleed into the demo image area
    */
    .demo-slider      { min-height: 188px; }
    .demo-device      { height: 220px; }
    .sw-left .demo-slide[data-slide="0"] .landing-demo { height: 220px; }
    .sw-left .demo-slide[data-slide="0"] .demo-device { inset: 10px; height: auto; }
    .demo-body        { max-height: 220px; padding: 8px 10px; }
    .demo-card        { padding: 8px 10px; }
    .demo-step        { padding: 7px 8px; }

    /* Dots get less top padding since the whole section is smaller */
    .slider-dots { padding-top: 8px; }

    .tagline { font-size: 12.5px; line-height: 1.5; }

    .feat-grid      { gap: 10px; }
    .feat-item-card { padding: 8px 8px; min-height: 74px; }
    .feat-ic        { font-size: 18px; }
    .feat-item-text { font-size: 9.5px; }

    .auth-card { padding: 20px 28px; }

    .auth-logo-centered { margin-bottom: 14px; }
    .auth-logo-centered .auth-logo-image { width: 60px; height: 60px; }
}

/* ── ≤ 650px height ──────────────────────────────────────────── */
@media (max-height: 650px) {
    .sw-left {
        padding: 12px 18px 10px;
        gap: 8px;
    }

    .brand-header     { gap: 8px; margin-bottom: 4px; }
    .home-btn-header  { width: 36px; height: 36px; font-size: 18px; }
    .brand-main-title { font-size: 20px; }
    .brand-subtitle   { font-size: 10px; }

    .demo-slider-wrap { max-height: 188px; padding: 4px 0 2px; }
    .demo-slider      { min-height: 158px; }
    .demo-device      { height: 190px; }
    .sw-left .demo-slide[data-slide="0"] .landing-demo { height: 190px; }
    .sw-left .demo-slide[data-slide="0"] .demo-device { inset: 8px; height: auto; }
    .demo-body        { max-height: 190px; padding: 7px; }
    .demo-card        { padding: 7px 9px; }
    .demo-step        { padding: 6px 7px; }

    /* Dots: minimal but still clear */
    .slider-dots { padding-top: 6px; padding-bottom: 2px; }
    .sdot { width: 7px; height: 7px; }
    .sdot.active { width: 18px; }

    .brand-bottom { gap: 8px; }

    .tagline { font-size: 12px; line-height: 1.45; }

    .feat-grid      { gap: 9px; }
    .feat-item-card { padding: 7px 7px; min-height: 68px; }
    .feat-ic        { font-size: 17px; }
    .feat-item-text { font-size: 9px; line-height: 1.4; }

    /* Right panel tighter too */
    .sw-right { padding: 14px 20px; }
    .auth-card { padding: 18px 24px; }

    .auth-logo-centered { margin-bottom: 12px; }
    .auth-logo-centered .auth-logo-image { width: 54px; height: 54px; }

    .form-title { font-size: 18px; }
    .form-sub   { font-size: 12.5px; margin-bottom: 12px; }

    .features-divider { margin-top: 12px; padding-top: 12px; }
}

/* ── Very short landscape mobile (≤ 500px height, ≤ 768px width) */
@media (max-height: 500px) and (max-width: 768px) {
    .sw-right {
        padding: 16px 18px 20px;
        min-height: auto;
    }

    .auth-logo-centered {
        margin-bottom: 12px;
        margin-top: 0;
    }

    .auth-logo-centered .auth-logo-image { width: 48px; height: 48px; }

    .auth-card { padding: 16px; }

    .form-title { font-size: 17px; }
    .form-sub   { margin-bottom: 10px; }

    .features-divider { margin-top: 10px; padding-top: 10px; }
}

/* ── Device limit modal (login-time device slot picker) ─────────────── */
.dl-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.dl-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}

.dl-modal__content {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 86vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    animation: dlModalIn 0.25s ease;
}

@keyframes dlModalIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.dl-modal__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.dl-modal__header i {
    color: var(--accent-color);
    font-size: 20px;
}

.dl-modal__header h3 {
    margin: 0;
    font-size: 17px;
    color: var(--text-primary);
}

.dl-modal__desc {
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.9;
    margin: 0 0 16px;
}

.dl-modal__devices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}

.dl-device {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(var(--accent-rgb), 0.03);
}

.dl-device__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.dl-device__info {
    flex: 1;
    min-width: 0;
}

.dl-device__name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dl-device__meta {
    font-size: 11.5px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.dl-device__logout {
    flex-shrink: 0;
    border: none;
    background: rgba(var(--error-base-rgb, 165, 37, 34), 0.1);
    color: var(--error-base, #A52522);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 12.5px;
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
    white-space: nowrap;
}

.dl-device__logout:hover {
    background: rgba(var(--error-base-rgb, 165, 37, 34), 0.18);
}

.dl-device__logout:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dl-modal__cancel {
    width: 100%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 12px;
    padding: 11px;
    font-size: 13.5px;
    cursor: pointer;
    transition: var(--transition, all 0.3s ease);
}

.dl-modal__cancel:hover {
    background: rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .dl-device {
    background: rgba(var(--accent-rgb), 0.06);
}

[data-theme="dark"] .dl-modal__cancel:hover {
    background: rgba(255, 255, 255, 0.06);
}

/* ── ARCaptcha widget on the login step ──────────────────────────────── */
.login-captcha-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 18px 0 4px;
}

.login-captcha-wrap .error-message {
    align-self: flex-start;
    margin-top: 6px;
}

/* ── ARCaptcha loading / error states (overlaid on top of the widget's own
   box so the two never lay out side-by-side and stretch the row) ──────── */
.login-captcha-box {
    position: relative;
    min-height: 78px;
    width: 100%;
    max-width: 302px;
}

#arcaptchaContainer {
    display: flex;
    justify-content: center;
}

.login-captcha-status {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-secondary);
    padding: 10px 14px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.login-captcha-status i {
    color: var(--accent-color);
    font-size: 14px;
}

.login-captcha-status--error {
    color: var(--error-base, #A52522);
    border-color: rgba(165, 37, 34, 0.25);
}

.login-captcha-status--error i {
    color: var(--error-base, #A52522);
}

.login-captcha-status--error button {
    border: none;
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent-color);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    flex-basis: 100%;
}

.login-captcha-status--error button:hover {
    background: rgba(var(--accent-rgb), 0.2);
}
