/* ══════════════════════════════════════════════════════════════
   FONTS
   ══════════════════════════════════════════════════════════════ */
@font-face {
    font-family: 'Cairo';
    src: url('../fonts/cairo/Cairo-Regular.eot');
    src: local('../fonts/cairo/Cairo-Regular'), url('../fonts/cairo/Cairo-Regular.eot?#iefix') format('embedded-opentype'), url('../fonts/cairo/Cairo-Regular.woff2') format('woff2'), url('../fonts/cairo/Cairo-Regular.woff') format('woff'), url('../fonts/cairo/Cairo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cairo';
    src: url('../fonts/cairo/Cairo-Bold.eot');
    src: local('../fonts/cairo/Cairo-Bold'), url('../fonts/cairo/Cairo-Bold.eot?#iefix') format('embedded-opentype'), url('../fonts/cairo/Cairo-Bold.woff2') format('woff2'), url('../fonts/cairo/Cairo-Bold.woff') format('woff'), url('../fonts/cairo/Cairo-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ══════════════════════════════════════════════════════════════
   VARIABLES
   ══════════════════════════════════════════════════════════════ */
:root {
    --cyber-bg: #060810;
    --cyber-surface: #0e1222;
    --cyber-surface-hover: #161c33;
    --cyber-border: rgba(255, 255, 255, 0.08);
    --cyber-border-glow: rgba(99, 102, 241, 0.4);
    --accent-purple: #9333ea;
    --accent-indigo: #6366f1;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --text-pure: #ffffff;
    --text-muted: #94a3b8;
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ══════════════════════════════════════════════════════════════
   RESET & BASE
   ══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: auto;
    font-family: "Cairo"
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    font-family: "Cairo",-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--cyber-bg);
    color: var(--text-pure);
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    isolation: isolate;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ══════════════════════════════════════════════════════════════
   SCROLLBAR STYLING - RTL/LTR AWARE
   ══════════════════════════════════════════════════════════════ */

/* WebKit Scrollbar - Chrome, Safari, Edge */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(6, 8, 16, 0.5);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.6), rgba(147, 51, 234, 0.6), rgba(6, 182, 212, 0.6));
    border-radius: 99px;
    border: 2px solid rgba(6, 8, 16, 0.8);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, rgba(99, 102, 241, 0.8), rgba(147, 51, 234, 0.8), rgba(6, 182, 212, 0.8));
        box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
    }

::-webkit-scrollbar-corner {
    background: rgba(6, 8, 16, 0.5);
}

/* Hide horizontal scrollbar */
::-webkit-scrollbar-horizontal {
    display: none;
    height: 0;
    width: 0;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(99, 102, 241, 0.6) rgba(6, 8, 16, 0.5);
}

/* RTL Specific Scrollbar Styling */
html[dir="rtl"] ::-webkit-scrollbar-thumb {
    background: linear-gradient(0deg, rgba(6, 182, 212, 0.6), rgba(147, 51, 234, 0.6), rgba(99, 102, 241, 0.6));
}

    html[dir="rtl"] ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(0deg, rgba(6, 182, 212, 0.8), rgba(147, 51, 234, 0.8), rgba(99, 102, 241, 0.8));
    }

/* Desktop scrollbar - wider */
@media (min-width: 992px) {
    ::-webkit-scrollbar {
        width: 12px;
    }

    ::-webkit-scrollbar-track {
        background: rgba(6, 8, 16, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    ::-webkit-scrollbar-thumb {
        background: linear-gradient(180deg, rgba(99, 102, 241, 0.7), rgba(147, 51, 234, 0.7), rgba(6, 182, 212, 0.7));
        border: 3px solid rgba(6, 8, 16, 0.9);
    }

        ::-webkit-scrollbar-thumb:hover {
            background: linear-gradient(180deg, rgba(99, 102, 241, 0.9), rgba(147, 51, 234, 0.9), rgba(6, 182, 212, 0.9));
            box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
        }

    body {
        scrollbar-gutter: stable;
    }
}

/* Mobile scrollbar - thinner */
@media (max-width: 768px) {
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    ::-webkit-scrollbar-thumb {
        border-width: 1px;
    }
}

/* ══════════════════════════════════════════════════════════════
   TOP FLOATING BAR
   ══════════════════════════════════════════════════════════════ */
.login-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: linear-gradient(180deg, rgba(6, 8, 16, 0.95) 0%, rgba(6, 8, 16, 0.7) 70%, rgba(6, 8, 16, 0) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
}

    .login-top-bar > * {
        pointer-events: auto;
    }

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--cyber-border);
    border-radius: 99px;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

    .back-home-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(147, 51, 234, 0.1));
        opacity: 0;
        transition: var(--transition-smooth);
    }

    .back-home-btn:hover {
        background: rgba(99, 102, 241, 0.15);
        border-color: var(--cyber-border-glow);
        color: #ffffff;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

        .back-home-btn:hover::before {
            opacity: 1;
        }

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-badge {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--cyber-border);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
}

    .notification-badge:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateY(-1px);
    }

    .notification-badge i {
        font-size: 1.1rem;
        color: #fff;
    }

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid var(--cyber-bg);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }
}

/* ══════════════════════════════════════════════════════════════
   MAIN PAGE CANVAS
   ══════════════════════════════════════════════════════════════ */
.cyber-login-canvas {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    isolation: isolate;
    padding: 100px 24px 40px;
    background: radial-gradient(circle at 50% 0%, rgba(147, 51, 234, 0.25), transparent 65%), radial-gradient(circle at 15% 85%, rgba(6, 182, 212, 0.18), transparent 60%), radial-gradient(circle at 85% 85%, rgba(99, 102, 241, 0.2), transparent 60%), var(--cyber-bg);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100vw;
    margin-right: 0;
    margin-left: 0;
}

html[dir="rtl"] .cyber-login-canvas {
    margin-right: 0;
    margin-left: 0;
}

/* ══════════════════════════════════════════════════════════════
   BACKGROUND EFFECTS - FIXED, BEHIND CONTENT
   ══════════════════════════════════════════════════════════════ */

/* Ambient Glowing Halos */
.hero-halo {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.65;
    animation: haloFloat 12s infinite alternate ease-in-out;
    max-width: 100vw;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.halo-indigo {
    width: 520px;
    height: 520px;
    background: rgba(99, 102, 241, 0.25);
    top: -100px;
    left: -80px;
}

.halo-purple {
    width: 480px;
    height: 480px;
    background: rgba(147, 51, 234, 0.22);
    bottom: -100px;
    right: -80px;
    animation-delay: -5s;
}

.halo-cyan {
    width: 380px;
    height: 380px;
    background: rgba(6, 182, 212, 0.18);
    top: 40%;
    right: 20%;
    animation-delay: -9s;
}

@keyframes haloFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(25px, -30px) scale(1.08);
    }

    100% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Geometric Grid Pattern Overlay */
.cyber-grid-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.2px, transparent 1.2px), linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px, 32px 32px;
    opacity: 0.7;
    max-width: 100vw;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Floating Particles */
.floating-particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    max-width: 100vw;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float-particle 20s infinite linear;
}

.p1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.p2 {
    top: 60%;
    left: 20%;
    animation-delay: -5s;
}

.p3 {
    top: 30%;
    left: 80%;
    animation-delay: -10s;
}

.p4 {
    top: 70%;
    left: 90%;
    animation-delay: -15s;
}

.p5 {
    top: 50%;
    left: 50%;
    animation-delay: -3s;
}

.p6 {
    top: 80%;
    left: 40%;
    animation-delay: -8s;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* ══════════════════════════════════════════════════════════════
   MAIN GRID SHELL - FIXED LAYOUT
   ══════════════════════════════════════════════════════════════ */
.login-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
    align-items: stretch;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Force side-by-side layout on desktop */
@media (min-width: 992px) {
    .login-shell {
        display: grid !important;
        grid-template-columns: 1fr 1.1fr !important;
        gap: 32px !important;
        align-items: stretch !important;
    }

    .showcase-tile {
        display: flex !important;
    }

    .form-card-wrap {
        display: flex !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   LEFT SHOWCASE BENTO TILE
   ══════════════════════════════════════════════════════════════ */
.showcase-tile {
    background: var(--cyber-surface);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--cyber-border);
    border-radius: 28px;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 600px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

    .showcase-tile::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: shimmer 3s infinite;
    }

@keyframes shimmer {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.showcase-tile:hover {
    border-color: var(--cyber-border-glow);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-4px);
}

.showcase-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--cyber-border);
    padding: 8px 16px;
    border-radius: 99px;
    width: fit-content;
}

.brand-pill-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-indigo));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 0 18px rgba(147, 51, 234, 0.5);
}

.brand-pill-text {
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.01em;
}

.brand-badge {
    background: linear-gradient(135deg, var(--accent-amber), #f97316);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

.showcase-hero {
    margin-top: 28px;
    margin-bottom: 24px;
}

    .showcase-hero h2 {
        font-size: 2.1rem;
        font-weight: 900;
        line-height: 1.25;
        margin-bottom: 16px;
        background: linear-gradient(135deg, #ffffff 30%, #c4b5fd 70%, var(--accent-cyan) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .showcase-hero p {
        font-size: 0.9rem;
        color: var(--text-muted);
        line-height: 1.7;
    }

/* Feature Micro Items */
.showcase-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.feature-bento-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--cyber-border);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
}

    .feature-bento-item:hover {
        background: var(--cyber-surface-hover);
        border-color: var(--cyber-border-glow);
        transform: translateX(4px);
        box-shadow: 0 4px 20px rgba(99, 102, 241, 0.2);
    }

html[dir="rtl"] .feature-bento-item:hover {
    transform: translateX(-4px);
}

.f-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: var(--transition-smooth);
}

.feature-bento-item:hover .f-icon-wrap {
    transform: scale(1.1);
}

.fi-indigo {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.fi-cyan {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.fi-emerald {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.feature-content {
    flex: 1;
}

.f-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.f-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.feature-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-bento-item:hover .feature-arrow {
    opacity: 1;
    color: var(--accent-cyan);
}

/* Showcase Stats */
.showcase-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--cyber-border);
    margin-top: 20px;
    flex-shrink: 0;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.1rem;
}

.stat-num {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.stat-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════════
   RIGHT FORM BENTO CARD
   ══════════════════════════════════════════════════════════════ */
.form-card-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.form-card-glow {
    position: absolute;
    inset: -2px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.6), rgba(99, 102, 246, 0.5), rgba(6, 182, 212, 0.5), rgba(147, 51, 234, 0.6));
    background-size: 300% 300%;
    animation: cardGlowSpin 6s linear infinite;
    z-index: -1;
    filter: blur(3px);
}

@keyframes cardGlowSpin {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.form-card {
    background: var(--cyber-surface);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid var(--cyber-border);
    border-radius: 28px;
    padding: 40px 40px 32px;
    box-shadow: var(--shadow-lg);
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.form-header {
    margin-bottom: 28px;
}

.form-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 99px;
    margin-bottom: 16px;
}

.form-header h1 {
    font-size: 1.9rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.form-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Google Sign-In */
.google-bento-btn {
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--cyber-border);
    border-radius: 14px;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: inherit;
}

    .google-bento-btn:hover {
        background: var(--cyber-surface-hover);
        border-color: var(--cyber-border-glow);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    }

    .google-bento-btn i {
        font-size: 1.2rem;
        color: #ea4335;
    }

.divider-or {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 20px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

    .divider-or::before,
    .divider-or::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--cyber-border), transparent);
    }

/* Input Controls */
.input-group-custom {
    margin-bottom: 20px;
}

.input-lbl {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}

    .input-lbl i {
        font-size: 0.9rem;
        color: var(--accent-indigo);
    }

.input-box {
    position: relative;
    display: flex;
    align-items: center;
}

/* Direction-aware icon positioning */
html[dir="rtl"] .input-icon {
    position: absolute;
    right: 14px;
    left: auto;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

html[dir="ltr"] .input-icon {
    position: absolute;
    left: 14px;
    right: auto;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.input-ctrl {
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--cyber-border);
    border-radius: 14px;
    color: #ffffff;
    font-size: 0.9rem;
    padding: 0 44px 0 44px;
    font-family: inherit;
    transition: var(--transition-smooth);
}

    .input-ctrl:focus {
        outline: none;
        border-color: var(--cyber-border-glow);
        background: rgba(99, 102, 241, 0.1);
        box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
    }

    .input-ctrl::placeholder {
        color: rgba(255, 255, 255, 0.3);
        font-size: 0.85rem;
    }

.input-status {
    position: absolute;
    right: 14px;
    color: var(--accent-emerald);
    font-size: 1rem;
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
    pointer-events: none;
}

.input-ctrl:valid + .input-status {
    opacity: 1;
}

/* Password Eye Toggle */
html[dir="rtl"] .pwd-eye {
    position: absolute;
    left: 12px;
    right: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 6px;
    transition: color 0.2s;
    z-index: 2;
}

html[dir="ltr"] .pwd-eye {
    position: absolute;
    right: 12px;
    left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 6px;
    transition: color 0.2s;
    z-index: 2;
}

.pwd-eye:hover {
    color: #ffffff;
}

/* Password Strength Bars */
.pw-bars {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    padding: 0 4px;
}

.pw-bar {
    flex: 1;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease;
}

/* Actions Sub-Row */
.actions-sub-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--cyber-border);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 24px;
}

.chk-box {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

    .chk-box input {
        width: 18px;
        height: 18px;
        accent-color: var(--accent-indigo);
        cursor: pointer;
        border-radius: 4px;
    }

    .chk-box span {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.75);
        font-weight: 600;
    }

.forgot-link {
    font-size: 0.85rem;
    color: #a5b4fc;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

    .forgot-link:hover {
        color: #c4b5fd;
        text-decoration: underline;
    }

/* CTA Button */
.btn-submit-cyber {
    width: 100%;
    height: 54px;
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 50%, var(--accent-cyan) 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.45);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

    .btn-submit-cyber::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transform: translateX(-100%);
        transition: transform 0.6s;
    }

    .btn-submit-cyber:hover::before {
        transform: translateX(100%);
    }

    .btn-submit-cyber:hover {
        transform: translateY(-2px);
        box-shadow: 0 15px 40px rgba(147, 51, 234, 0.6);
    }

    .btn-submit-cyber:active {
        transform: translateY(0);
    }

/* Register Redirect Footer */
.form-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--cyber-border);
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

    .form-footer a {
        color: var(--accent-cyan);
        font-weight: 800;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: var(--transition-smooth);
    }

        .form-footer a:hover {
            color: #67e8f9;
            text-decoration: underline;
        }

        .form-footer a i {
            font-size: 0.8rem;
        }

/* Trust Badges */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

    .trust-item i {
        font-size: 0.9rem;
        color: var(--accent-emerald);
    }

/* Validation Errors */
.verr {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.8rem;
    margin-bottom: 16px;
}

.ferr {
    font-size: 0.74rem;
    color: #f87171;
    margin-top: 4px;
    display: block;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ══════════════════════════════════════════════════════════════ */

/* Large Screens (1400px and up) */
@media (min-width: 1400px) {
    .login-shell {
        max-width: 1300px;
    }

    .showcase-tile {
        padding: 48px 44px;
        min-height: 650px;
    }

    .form-card {
        padding: 48px 44px;
    }
}

/* Medium-Large Screens (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .login-shell {
        max-width: 960px;
        gap: 24px;
        padding: 0 16px;
    }

    .showcase-tile {
        padding: 32px 28px;
        min-height: 550px;
    }

    .form-card {
        padding: 32px 28px;
    }

    .showcase-hero h2 {
        font-size: 1.8rem;
    }

    .form-header h1 {
        font-size: 1.6rem;
    }
}

/* Tablet Screens (768px to 991px) */
@media (max-width: 991px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 520px;
        gap: 24px;
        padding: 0 16px;
    }

    .showcase-tile {
        display: none;
    }
}

/* Mobile Screens (576px to 768px) */
@media (max-width: 768px) {
    .cyber-login-canvas {
        padding: 80px 16px 24px;
    }

    .login-top-bar {
        padding: 16px 20px;
    }

    .form-card {
        padding: 32px 24px 24px;
    }

    .form-header h1 {
        font-size: 1.5rem;
    }
}

/* Small Mobile Screens (up to 576px) */
@media (max-width: 480px) {
    .back-home-btn span {
        display: none;
    }

    .back-home-btn {
        padding: 10px;
    }

    .form-card {
        padding: 24px 16px 20px;
    }

    .actions-sub-row {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .trust-badges {
        flex-wrap: wrap;
        gap: 12px;
    }

    .form-header h1 {
        font-size: 1.3rem;
    }

    .btn-submit-cyber {
        height: 48px;
        font-size: 0.9rem;
    }
}

/* RTL Specific Adjustments */
html[dir="rtl"] .feature-bento-item:hover {
    transform: translateX(-4px);
}

html[dir="rtl"] .btn-submit-cyber i {
    transform: rotate(180deg);
}

html[dir="rtl"] .form-footer a i {
    transform: rotate(180deg);
}
