/* File: tools/css/admin.css */
/* Admin Portal Specific Styles - Dark Theme with Red/Maroon Accents */

/* Font Face - IBM Plex Sans Arabic */
@font-face {
    font-family: 'IBMPlexSansArabic';
    src: url('../fonts/IBMPlexSansArabic-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBMPlexSansArabic';
    src: url('../fonts/IBMPlexSansArabic-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBMPlexSansArabic';
    src: url('../fonts/IBMPlexSansArabic-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBMPlexSansArabic';
    src: url('../fonts/IBMPlexSansArabic-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Variables - Admin Theme (Red/Maroon) */
:root {
    --primary: #AD1F24;
    --primary-dark: #8f191f;
    --primary-light: #c53a3f;
    --primary-glow: rgba(173, 31, 36, 0.3);
    --secondary: #7B2D8E;
    --secondary-glow: rgba(123, 45, 142, 0.2);
    --text-dark: #1E1B18;
    --text-light: #6B7280;
    --bg-dark: #0F0F1A;
    --bg-light: #FFFAFF;
    --bg-card: #1a1f2e;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px -15px rgba(173, 31, 36, 0.2);
    --shadow-hover: 0 25px 50px -12px rgba(173, 31, 36, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IBMPlexSansArabic', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
}

/* Force font on all elements */
*:not(i):not(.fa):not(.fas):not(.far):not(.fab) {
    font-family: 'IBMPlexSansArabic', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

/* Floating Orbs - Admin Colors */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: floatOrb 20s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at 30% 50%, rgba(173, 31, 36, 0.1), transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle at 70% 30%, rgba(173, 31, 36, 0.08), transparent 70%);
    bottom: -250px;
    left: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle at 50% 50%, rgba(173, 31, 36, 0.06), transparent 70%);
    top: 30%;
    left: 40%;
    animation-delay: -10s;
    animation-duration: 25s;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(5%, 5%) scale(1.1); }
    66% { transform: translate(-5%, -5%) scale(0.9); }
}

/* Main Container */
.container {
    width: 95%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 40px;
    box-shadow: var(--shadow-lg);
    display: flex;
    overflow: hidden;
    position: relative;
    z-index: 10;
    animation: containerAppear 0.6s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@keyframes containerAppear {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Form Side */
.form-side {
    flex: 1.2;
    padding: 50px 45px;
    position: relative;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 30px;
    right: 45px;
    z-index: 20;
}

.selector-glass {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.selector-glass:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(173, 31, 36, 0.1);
}

.selector-glass i.fa-globe {
    color: var(--primary);
    font-size: 0.9rem;
}

.modern-select {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    font-family: 'IBMPlexSansArabic', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 4px 20px 4px 4px;
    cursor: pointer;
    outline: none;
    font-weight: 500;
}

.select-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 0.7rem;
    pointer-events: none;
    transition: var(--transition);
}

/* Logo Styles */
.logo-container {
    position: relative;
    margin-bottom: 20px;
    display: inline-block;
}

.modern-logo {
    height: 60px;
    width: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(173, 31, 36, 0.2));
    transition: var(--transition-bounce);
}

.modern-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 16px rgba(173, 31, 36, 0.3));
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0.5;
    filter: blur(10px);
    animation: logoPulse 3s infinite ease-in-out;
    z-index: 1;
}

@keyframes logoPulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.5);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.8);
    }
}

/* Brand Badge */
.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(173, 31, 36, 0.08);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

.brand-badge-text {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Form Header */
.form-header {
    margin-bottom: 40px;
}

.header-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Modern Form */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 30px;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    margin-bottom: 5px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1rem;
    z-index: 2;
    transition: var(--transition);
}

.modern-input {
    width: 100%;
    padding: 18px 20px 18px 48px;
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    font-family: 'IBMPlexSansArabic', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(173, 31, 36, 0.1);
}

.input-label {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    font-size: 0.95rem;
    background: transparent;
    z-index: 3;
    font-weight: 500;
    padding: 0 4px;
}

/* FIXED: When input is focused or has value (including autofill) */
.input-wrapper.focused .input-label,
.modern-input:focus ~ .input-label,
.modern-input:not(:placeholder-shown) ~ .input-label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    background: var(--white);
    color: var(--primary);
    left: 40px;
}

/* FIXED: Browser autofill detection and styling */
.modern-input:-webkit-autofill,
.modern-input:-webkit-autofill:hover,
.modern-input:-webkit-autofill:focus,
.modern-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px var(--white) inset !important;
    -webkit-text-fill-color: var(--text-dark) !important;
    caret-color: var(--text-dark) !important;
    border-color: var(--primary-light);
}

/* FIXED: Ensure label stays above autofilled text */
.modern-input:-webkit-autofill ~ .input-label,
.modern-input:-webkit-autofill:hover ~ .input-label,
.modern-input:-webkit-autofill:focus ~ .input-label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    background: var(--white);
    color: var(--primary);
    left: 40px;
}

/* Animation for autofill detection */
@keyframes onAutoFillStart {
    from { opacity: 1; }
    to { opacity: 1; }
}

@keyframes onAutoFillCancel {
    from { opacity: 1; }
    to { opacity: 1; }
}

.modern-input:-webkit-autofill {
    animation-name: onAutoFillStart;
}

.modern-input:not(:-webkit-autofill) {
    animation-name: onAutoFillCancel;
}

.input-focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
    border-radius: 2px;
}

.modern-input:focus ~ .input-focus-border {
    width: calc(100% - 40px);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary);
}

/* Sign In Button */
.signin-btn {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    padding: 18px;
    border-radius: 25px;
    font-family: 'IBMPlexSansArabic', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    margin-top: 15px;
    border: 2px solid transparent;
    transition: var(--transition);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-text {
    position: relative;
    color: var(--white);
    z-index: 2;
    letter-spacing: 0.5px;
    transition: var(--transition);
    font-weight: 600;
}

.btn-loader {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.loader-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: loaderBounce 0.6s infinite alternate;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loaderBounce {
    to {
        transform: translateY(-6px);
        opacity: 0.8;
    }
}

.signin-btn.loading .btn-text {
    opacity: 0;
    transform: scale(0.8);
}

.signin-btn.loading .btn-loader {
    display: flex !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.signin-btn:not(.loading):hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px var(--primary-glow);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Admin Notice */
.admin-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px;
    background: rgba(173, 31, 36, 0.05);
    border-radius: 12px;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 500;
}

.admin-notice i {
    font-size: 0.9rem;
}

/* Visual Side - Admin Theme */
.visual-side {
    flex: 0.9;
    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 50px 40px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animation Container */
.animation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* Grid Overlay */
.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

/* Pulse Rings */
.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 6s ease-out infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 2s;
    width: 300px;
    height: 300px;
}

.pulse-ring.delay-2 {
    animation-delay: 4s;
    width: 400px;
    height: 400px;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Floating Cubes */
.floating-cubes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cube {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cube-1 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 10%;
    animation: floatCube 12s ease-in-out infinite;
    border-radius: 12px;
}

.cube-2 {
    width: 40px;
    height: 40px;
    bottom: 25%;
    right: 15%;
    animation: floatCube 8s ease-in-out infinite reverse;
    border-radius: 8px;
}

.cube-3 {
    width: 80px;
    height: 80px;
    top: 60%;
    left: 70%;
    animation: floatCube 15s ease-in-out infinite;
    border-radius: 16px;
}

@keyframes floatCube {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

/* Visual Content */
.visual-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    width: 100%;
}

.visual-content * {
    font-family: 'IBMPlexSansArabic', sans-serif;
}

/* Visual Title */
.visual-title {
    margin-bottom: 40px;
    position: relative;
    z-index: 12;
}

.visual-title h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    max-width: 300px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Stats Container */
.stats-container {
    display: flex;
    gap: 30px;
    margin-top: 60px;
    position: relative;
    z-index: 12;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Feature Badge */
.feature-badge {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.9rem;
    animation: badgeFloat 3s infinite ease-in-out;
    font-weight: 500;
}

.feature-badge i {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Error styles */
.input-error {
    position: absolute;
    bottom: -20px;
    left: 20px;
    font-size: 0.75rem;
    color: #EF4444;
    animation: errorFadeIn 0.2s ease;
}

@keyframes errorFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Notification styles */
.modern-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 9999;
    animation: notificationSlide 0.3s ease forwards;
}

.notification-content {
    background: #10B981;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    font-size: 0.95rem;
}

.notification-content.error {
    background: #EF4444;
}

.notification-content i {
    font-size: 1.2rem;
}

.error-shake {
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

@keyframes notificationSlide {
    to {
        transform: translateX(-50%) translateY(0);
    }
}

/* Modern Success Box Animation */
.modern-success-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modern-success-box.show {
    opacity: 1;
    visibility: visible;
}

.modern-success-box.hide {
    opacity: 0;
    visibility: hidden;
}

.success-box-content {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(173, 31, 36, 0.3);
    transform: scale(0.8);
    animation: successBoxPopIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    backdrop-filter: blur(10px);
}

.modern-success-box.hide .success-box-content {
    animation: successBoxPopOut 0.3s ease forwards;
}

@keyframes successBoxPopIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes successBoxPopOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

.success-icon-wrapper {
    margin-bottom: 20px;
}

.success-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #AD1F24, #8f191f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: successCirclePulse 0.5s ease-out;
    box-shadow: 0 0 30px rgba(173, 31, 36, 0.5);
}

@keyframes successCirclePulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-circle i {
    font-size: 40px;
    color: white;
    animation: successCheckSpin 0.4s ease-out 0.2s both;
}

@keyframes successCheckSpin {
    0% {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    100% {
        transform: rotate(0) scale(1);
        opacity: 1;
    }
}

.success-text h3 {
    color: #AD1F24;
    font-size: 24px;
    margin: 0 0 10px 0;
    font-weight: 600;
    animation: successTextSlideUp 0.4s ease-out 0.1s both;
}

.success-text p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
    animation: successTextSlideUp 0.4s ease-out 0.2s both;
}

@keyframes successTextSlideUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.success-progress {
    margin-top: 25px;
    width: 200px;
    height: 3px;
    background: rgba(173, 31, 36, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #AD1F24, #FF6B6B);
    width: 0%;
    animation: progressFill 1.5s linear forwards;
    border-radius: 3px;
}

@keyframes progressFill {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Input Shine Effect */
.input-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(173, 31, 36, 0.1),
        transparent
    );
    transition: left 0.6s;
    pointer-events: none;
    border-radius: 20px;
}

.input-wrapper:focus-within::after {
    left: 100%;
}

/* RTL Support */
html[data-lang="ar"] {
    direction: rtl;
}

html[data-lang="ar"] .language-selector {
    right: auto;
    left: 45px;
}

html[data-lang="ar"] .selector-glass i.fa-globe {
    margin-left: 0;
    margin-right: 0;
}

html[data-lang="ar"] .modern-select {
    padding: 4px 4px 4px 20px;
}

html[data-lang="ar"] .select-arrow {
    right: auto;
    left: 10px;
}

html[data-lang="ar"] .input-icon {
    left: auto;
    right: 16px;
}

html[data-lang="ar"] .modern-input {
    padding: 18px 48px 18px 20px;
}

html[data-lang="ar"] .input-label {
    left: auto;
    right: 48px;
}

html[data-lang="ar"] .input-wrapper.focused .input-label,
html[data-lang="ar"] .modern-input:focus ~ .input-label,
html[data-lang="ar"] .modern-input:not(:placeholder-shown) ~ .input-label {
    transform: translateY(-50%) scale(0.85);
    left: auto;
    right: 40px;
}

html[data-lang="ar"] .password-toggle {
    right: auto;
    left: 16px;
}

html[data-lang="ar"] .feature-badge i {
    margin-left: 8px;
    margin-right: 0;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        margin: 30px 15px;
    }
    
    .language-selector {
        top: 20px;
        right: 20px;
    }
    
    html[data-lang="ar"] .language-selector {
        left: 20px;
    }
    
    .visual-side {
        padding: 40px 30px;
    }
    
    .visual-title h2 {
        max-width: 100%;
    }
}

@media (max-width: 500px) {
    .form-side {
        padding: 40px 20px;
    }
    
    .header-title {
        font-size: 1.8rem;
    }
    
    .stats-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .modern-logo {
        height: 50px;
    }
    
    .success-box-content {
        padding: 30px 40px;
        margin: 20px;
    }
    
    .success-circle {
        width: 60px;
        height: 60px;
    }
    
    .success-circle i {
        font-size: 30px;
    }
    
    .success-text h3 {
        font-size: 20px;
    }
    
    .success-progress {
        width: 150px;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    .orb,
    .feature-badge,
    .badge-dot,
    .pulse-ring,
    .cube,
    .grid-overlay {
        animation: none !important;
    }
}