* {
    box-sizing: border-box;
}
body {
    font-family: 'Cairo', sans-serif;
    background-color: #1a1a2e;
    min-height: 100vh;
    color: #f1f5f9;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Left-aligned on Desktop (RTL) */
    padding: 0 10%;
    margin: 0;
    position: relative;
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4); /* تعتيم خفيف */
    z-index: -1;
}

@media (max-width: 1024px) {
    body {
        justify-content: center;
        padding: 0 20px;
    }
}

/* Glowing Border Animation - Matched with Video Background (Neon Orange & Black) */
.login-card {
    background: rgba(10, 5, 5, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 90, 0, 0.15) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 90, 0, 0.08) !important;
}

.login-card:hover {
    border-color: rgba(255, 90, 0, 0.4) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(255, 90, 0, 0.15) !important;
}

.input-group input {
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

.input-group input:focus {
    border-color: #ff5a00 !important;
    box-shadow: 0 0 15px rgba(255, 90, 0, 0.25) !important;
    background: rgba(255, 90, 0, 0.05) !important;
}

/* Submit Button Gaming Style - Neon Orange */
.submit-btn {
    text-transform: uppercase;
    letter-spacing: 0;
    font-weight: 900 !important;
    height: 55px;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #ff5a00, #ff2a00) !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(255, 90, 0, 0.3) !important;
    color: #fff !important;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 90, 0, 0.5) !important;
}

/* Brand Title Upgrade */
.brand-subtitle {
    background: linear-gradient(90deg, #f97316, #ea580c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 0.75rem !important;
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.brand-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-xl);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-label-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.input-icon {
    color: #f97316;
    width: 18px;
    height: 18px;
}

.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.85rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #ff5a00, #ff2a00) !important;
    border: none !important;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 90, 0, 0.3);
}

/* Floating Turnstile Styles */
.turnstile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.turnstile-overlay.show {
    display: block;
    opacity: 1;
}

.turnstile-popup {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 9999;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: none;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 350px;
}

.turnstile-popup.show {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.turnstile-header {
    text-align: center;
    margin-bottom: 1rem;
}

.turnstile-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.turnstile-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.close-turnstile {
    position: absolute;
    top: 10px;
    right: 10px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.close-turnstile:hover {
    color: #ff4c00;
}

/* Submit Button Icon Animations */
@keyframes pulse-arrow {
    0% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}
.submit-btn:hover .fa-arrow-left {
    animation: pulse-arrow 1s infinite;
}

@keyframes custom-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.fa-spin {
    animation: custom-spin 1s linear infinite !important;
}

/* OTP Inputs Enhancement - Fixed Specificity */
.input-group .otp-input {
    width: 55px !important;
    height: 65px !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 1.75rem !important;
    font-weight: 900 !important;
    background: rgba(10, 15, 30, 0.8) !important;
    border: 2px solid rgba(255, 90, 0, 0.3) !important;
    border-radius: 12px !important;
    color: #fff !important;
    box-shadow: inset 0 3px 6px rgba(0,0,0,0.6) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.input-group .otp-input:focus {
    border-color: #ff5a00 !important;
    background: rgba(10, 15, 30, 1) !important;
    box-shadow: 0 0 15px rgba(255, 90, 0, 0.5), inset 0 3px 6px rgba(0,0,0,0.6) !important;
    transform: translateY(-3px);
}

/* Custom SweetAlert2 Gaming Theme */
.swal2-popup {
    background: rgba(15, 20, 30, 0.95) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 90, 0, 0.3) !important;
    border-radius: 16px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.9), 0 0 25px rgba(255, 90, 0, 0.15) !important;
    color: #fff !important;
    font-family: 'Cairo', sans-serif !important;
}

.swal2-title {
    color: #ff5a00 !important;
    font-weight: 900 !important;
    font-size: 1.6rem !important;
}

.swal2-html-container {
    color: #cbd5e1 !important;
    font-size: 1.05rem !important;
}

.swal2-confirm {
    background: linear-gradient(135deg, #ff5a00, #ff2a00) !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: 'Cairo', sans-serif !important;
    font-weight: bold !important;
    padding: 12px 30px !important;
    box-shadow: 0 5px 15px rgba(255, 90, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.swal2-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 90, 0, 0.5) !important;
}

.swal2-icon.swal2-error {
    border-color: #ff2a00 !important;
    color: #ff2a00 !important;
}

.swal2-icon.swal2-error [class^='swal2-x-mark-line'] {
    background-color: #ff2a00 !important;
}

.swal2-icon.swal2-warning {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
}

