/* 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 */
:root {
    --primary: #AD1F24;
    --primary-dark: #8f191f;
    --primary-light: #c53a3f;
    --primary-glow: rgba(173, 31, 36, 0.3);
    --text-dark: #1E1B18;
    --text-light: #6B7280;
    --bg-light: #FFFAFF;
    --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 */
.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.08), 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.05), transparent 70%);
    bottom: -250px;
    left: -150px;
    animation-delay: -5s;
}

@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.9);
    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.3);
}

@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);
}

.modern-select:hover + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.modern-select option {
    font-family: 'IBMPlexSansArabic', sans-serif;
    background: var(--white);
    color: var(--text-dark);
    padding: 10px;
}

/* 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;
    font-family: 'IBMPlexSansArabic', sans-serif;
}

/* 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;
    font-family: 'IBMPlexSansArabic', sans-serif;
}

.header-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'IBMPlexSansArabic', sans-serif;
}

/* 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);
}

.modern-input:focus + .input-label,
.modern-input:not(:placeholder-shown) + .input-label {
    transform: translateY(-30px) translateX(-32px) scale(0.85);
    color: var(--primary);
    background: var(--white);
    padding: 0 8px;
    left: 40px;
    z-index: 3;
}

.input-label {
    position: absolute;
    left: 48px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
    font-size: 0.95rem;
    background: transparent;
    z-index: 2;
    font-family: 'IBMPlexSansArabic', sans-serif;
    font-weight: 500;
}

.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);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-top: 5px;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    font-family: 'IBMPlexSansArabic', sans-serif;
    font-size: 0.9rem;
}

.forgot-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition);
}

.forgot-link:hover::after {
    width: 100%;
}

/* Sign In Button */
.signin-btn {
    position: relative;
    background: var(--primary);
    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-family: 'IBMPlexSansArabic', sans-serif;
    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: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px var(--primary-glow);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Creative Join Button */
.join-container {
    margin-top: 30px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.join-decoration {
    display: flex;
    gap: 8px;
}

.join-decoration span {
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: dotPulse 2s infinite;
}

.join-decoration span:nth-child(2) { animation-delay: 0.3s; }
.join-decoration span:nth-child(3) { animation-delay: 0.6s; }

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(2); opacity: 0.6; }
}

.join-text {
    color: var(--text-light);
    font-size: 0.9rem;
    font-family: 'IBMPlexSansArabic', sans-serif;
    font-weight: 500;
}

/* Magnetic Join Button */
.magnetic-join-btn {
    position: relative;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    perspective: 1000px;
    transition: transform 0.2s;
}

.btn-content {
    position: relative;
    width: 140px;
    height: 50px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
}

.magnetic-join-btn:hover .btn-content {
    transform: rotateY(180deg);
}

.btn-front,
.btn-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 30px;
    backface-visibility: hidden;
    box-shadow: 0 10px 25px -5px rgba(173, 31, 36, 0.3);
    border: 2px solid var(--primary);
}

.btn-front {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: rotateY(0deg);
    color: var(--white);
}

.btn-back {
    background: var(--white);
    transform: rotateY(180deg);
    color: var(--primary);
}

.btn-label {
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'IBMPlexSansArabic', sans-serif;
}

.btn-icon-main {
    font-size: 1.1rem;
    animation: storeBounce 2s infinite;
}

@keyframes storeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.btn-icon-back {
    font-size: 1rem;
    animation: arrowMove 2s infinite;
}

@keyframes arrowMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

/* Shine Effect */
.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s;
    border-radius: 30px;
    pointer-events: none;
}

.magnetic-join-btn:hover .btn-shine {
    left: 100%;
}

/* Glow Effect */
.btn-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: 30px;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
    z-index: -1;
    filter: blur(10px);
}

.magnetic-join-btn:hover .btn-glow {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.2);
}

/* Visual Side with Waterflow Animation */
.visual-side {
    flex: 0.9;
    background: linear-gradient(145deg, var(--primary) 0%, #b82e33 100%);
    padding: 50px 40px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Waterflow Container */
.waterflow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* Water Waves */
.water-wave {
    position: absolute;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 40%;
    animation: waterflow 18s linear infinite;
    will-change: transform;
    pointer-events: none;
}

.wave-1 {
    top: -50%;
    left: -50%;
    opacity: 0.3;
}

.wave-2 {
    top: -45%;
    left: -45%;
    width: 190%;
    height: 190%;
    background: rgba(255, 255, 255, 0.05);
    animation-duration: 22s;
    animation-delay: -2s;
    opacity: 0.2;
}

@keyframes waterflow {
    0% {
        transform: rotate(0deg) translateY(0) scale(1);
    }
    25% {
        transform: rotate(5deg) translateY(-5%) scale(1.02);
    }
    50% {
        transform: rotate(0deg) translateY(-10%) scale(1.05);
    }
    75% {
        transform: rotate(-5deg) translateY(-5%) scale(1.02);
    }
    100% {
        transform: rotate(0deg) translateY(0) scale(1);
    }
}

/* Bubbles */
.water-bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: bubbleRise 10s linear infinite;
    will-change: transform, opacity;
}

.bubble-1 {
    width: 40px;
    height: 40px;
    left: 20%;
    bottom: -40px;
    animation-duration: 10s;
    animation-delay: 0s;
}

.bubble-2 {
    width: 60px;
    height: 60px;
    left: 50%;
    bottom: -60px;
    animation-duration: 14s;
    animation-delay: 2s;
}

@keyframes bubbleRise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.2;
        transform: translateY(-50vh) scale(1.2);
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100vh) scale(1.5);
        opacity: 0;
    }
}

/* Ripples */
.water-ripple {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: ripple 8s ease-out infinite;
    will-change: transform, opacity;
}

.ripple-1 {
    width: 100px;
    height: 100px;
    left: 30%;
    top: 20%;
    animation-duration: 8s;
    animation-delay: 0s;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: scale(5);
        opacity: 0;
    }
}

/* 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);
    font-family: 'IBMPlexSansArabic', sans-serif;
}

/* 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);
    font-family: 'IBMPlexSansArabic', sans-serif;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
    font-family: 'IBMPlexSansArabic', sans-serif;
    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-family: 'IBMPlexSansArabic', sans-serif;
    font-weight: 500;
}

.feature-badge i {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes badgeFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    .water-wave,
    .water-bubble,
    .water-ripple,
    .orb,
    .feature-badge,
    .badge-dot,
    .btn-icon-main,
    .btn-icon-back,
    .join-decoration span {
        animation: none !important;
    }
}

/* 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"] .modern-input:focus + .input-label,
html[data-lang="ar"] .modern-input:not(:placeholder-shown) + .input-label {
    transform: translateY(-30px) translateX(32px) scale(0.85);
    left: auto;
    right: 40px;
}

html[data-lang="ar"] .password-toggle {
    right: auto;
    left: 16px;
}

html[data-lang="ar"] .btn-back .btn-icon-back {
    transform: rotate(180deg);
}

html[data-lang="ar"] .magnetic-join-btn:hover .btn-content {
    transform: rotateY(-180deg);
}

html[data-lang="ar"] .logo-container {
    float: right;
}

html[data-lang="ar"] .feature-badge i {
    margin-left: 8px;
    margin-right: 0;
}

html[data-lang="ar"] @keyframes arrowMove {
    0%, 100% { transform: translateX(0) rotate(180deg); }
    50% { transform: translateX(-5px) rotate(180deg); }
}

/* Force font on all text elements */
[data-en], [data-ar], 
.brand-badge span,
.header-title,
.header-subtitle,
.input-label,
.forgot-link,
.btn-text,
.btn-label,
.join-text,
.stat-value,
.stat-label,
.feature-badge span,
.visual-title h2 {
    font-family: 'IBMPlexSansArabic', sans-serif !important;
}

/* Error styles */
.input-error {
    position: absolute;
    bottom: -20px;
    left: 20px;
    font-size: 0.75rem;
    color: #EF4444;
    font-family: 'IBMPlexSansArabic', sans-serif;
    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;
    font-family: 'IBMPlexSansArabic', sans-serif;
}

.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;
    font-family: 'IBMPlexSansArabic', sans-serif;
}

.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);
    }
}

/* 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;
    }
    
    .join-container {
        flex-wrap: wrap;
    }
    
    .btn-content {
        width: 120px;
    }
    
    .stats-container {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .modern-logo {
        height: 50px;
    }
}