﻿<link href="https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&display=swap" rel="stylesheet" >
/* ===============================
   ROOT VARIABLES
================================ */

/* ===============================
   GLOBAL RESET
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Almarai', 'Cairo', 'IBM Plex Arabic', Arial, sans-serif;
    background: var(--text-dark);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ===============================
   ANIMATED BACKGROUND
================================ */
.auth-login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
    position: relative;
    overflow: hidden;
    background: var(--gradient-dark);
}

    /* Animated gradient orbs */
    .auth-login-section::before,
    .auth-login-section::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        filter: blur(120px);
        opacity: 0.4;
        animation: float 8s ease-in-out infinite;
    }

    .auth-login-section::before {
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(20, 184, 166, 0.6), rgba(6, 182, 212, 0.3));
        top: -200px;
        right: -200px;
        animation-delay: 0s;
    }

    .auth-login-section::after {
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(94, 234, 212, 0.5), rgba(45, 212, 191, 0.3));
        bottom: -150px;
        left: -150px;
        animation-delay: 4s;
    }

/* Floating particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-light);
    animation: particleFloat 15s linear infinite;
}

    .particle:nth-child(1) {
        left: 10%;
        animation-delay: 0s;
    }

    .particle:nth-child(2) {
        left: 20%;
        animation-delay: 2s;
    }

    .particle:nth-child(3) {
        left: 30%;
        animation-delay: 4s;
    }

    .particle:nth-child(4) {
        left: 40%;
        animation-delay: 6s;
    }

    .particle:nth-child(5) {
        left: 50%;
        animation-delay: 8s;
    }

    .particle:nth-child(6) {
        left: 60%;
        animation-delay: 10s;
    }

    .particle:nth-child(7) {
        left: 70%;
        animation-delay: 12s;
    }

    .particle:nth-child(8) {
        left: 80%;
        animation-delay: 14s;
    }

    .particle:nth-child(9) {
        left: 90%;
        animation-delay: 1s;
    }

    .particle:nth-child(10) {
        left: 15%;
        animation-delay: 3s;
    }

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ===============================
   HEADER
================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.section-badge {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-glow-strong);
    position: relative;
    overflow: hidden;
    animation: badgePulse 3s ease-in-out infinite;
}

    .section-badge::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        animation: badgeShine 3s linear infinite;
    }

    .section-badge i {
        display: inline-block;
        animation: sparkle 2s ease-in-out infinite;
    }

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 30px rgba(20, 184, 166, 0.4);
    }

    50% {
        box-shadow: 0 0 60px rgba(20, 184, 166, 0.7);
    }
}

@keyframes badgeShine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }

    50% {
        transform: scale(1.2) rotate(180deg);
    }
}

/* ===============================
   CARD
================================ */
.auth-login-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    padding: 3rem 2.5rem;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(20, 184, 166, 0.1);
    position: relative;
    z-index: 10;
    animation: cardEntrance 1s ease-out;
    border: 1px solid rgba(94, 234, 212, 0.2);
}

    .auth-login-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: var(--radius-xl);
        padding: 2px;
        background: var(--gradient-primary);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0.3;
        animation: borderGlow 3s ease-in-out infinite;
    }

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes borderGlow {
    0%, 100% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.6;
    }
}

/* ===============================
   FORM FIELDS
================================ */
.auth-login-field {
    position: relative;
    margin-bottom: 1.5rem;
}

    .auth-login-field i {
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%);
        color: var(--primary);
        font-size: 1.1rem;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 2;
    }

    .auth-login-field input:focus ~ i {
        color: var(--accent-cyan);
        transform: translateY(-50%) scale(1.2) rotate(5deg);
        animation: iconBounce 0.6s ease;
        filter: drop-shadow(0 0 8px var(--primary-light));
    }

@keyframes iconBounce {
    0%, 100% {
        transform: translateY(-50%) scale(1.2);
    }

    50% {
        transform: translateY(-50%) scale(1.4);
    }
}

.auth-login-field input {
    width: 100%;
    padding: 16px 55px 16px 20px;
    border-radius: var(--radius-md);
    border: 2px solid #e2e8f0;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    background: var(--bg-light);
    position: relative;
    color: var(--text-dark);
}

    .auth-login-field input:focus {
        outline: none;
        border-color: var(--primary);
        background: var(--bg-white);
        box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15), 0 10px 30px rgba(20, 184, 166, 0.1);
        transform: translateY(-2px);
    }

    .auth-login-field input::placeholder {
        color: var(--text-light);
        transition: all 0.3s ease;
    }

    .auth-login-field input:focus::placeholder {
        transform: translateX(-5px);
        opacity: 0.7;
        color: var(--text-gray);
    }

.auth-login-field span {
    display: block;
    font-size: 0.8rem;
    margin-top: 6px;
    color: #dc2626;
    animation: errorShake 0.4s ease;
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* ===============================
   REMEMBER & FORGOT
================================ */
.auth-login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

    .auth-login-remember:hover {
        color: var(--primary-dark);
    }

    .auth-login-remember input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: var(--primary);
    }

    .auth-login-remember i {
        color: var(--primary);
        transition: all 0.3s ease;
    }

    .auth-login-remember:hover i {
        transform: scale(1.2);
        filter: drop-shadow(0 0 5px var(--primary-light));
    }

.auth-login-forgot {
    font-size: 0.9rem;
    color: var(--primary-dark);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 600;
}

    .auth-login-forgot::after {
        content: "";
        position: absolute;
        bottom: -3px;
        right: 0;
        width: 0;
        height: 2px;
        background: var(--gradient-primary);
        transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    .auth-login-forgot:hover {
        color: var(--accent-cyan);
        transform: translateX(-3px);
    }

        .auth-login-forgot:hover::after {
            width: 100%;
        }

    .auth-login-forgot i {
        transition: all 0.3s ease;
    }

    .auth-login-forgot:hover i {
        transform: rotate(15deg);
    }

/* ===============================
   BUTTON
================================ */
.auth-login-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-glow);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

    .auth-login-btn::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }

    .auth-login-btn:hover::before {
        width: 300px;
        height: 300px;
    }

    .auth-login-btn:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 20px 50px rgba(20, 184, 166, 0.5);
    }

    .auth-login-btn:active {
        transform: translateY(-1px) scale(0.98);
    }

    .auth-login-btn i {
        animation: arrowSlide 1.5s ease-in-out infinite;
    }

@keyframes arrowSlide {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-5px);
    }
}

/* ===============================
   REGISTER TEXT
================================ */
.auth-login-register {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-top: 2rem;
}

    .auth-login-register i {
        color: var(--primary);
    }

    .auth-login-register a {
        color: var(--primary-dark);
        font-weight: 700;
        margin-right: 6px;
        text-decoration: none;
        position: relative;
        transition: all 0.3s ease;
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

        .auth-login-register a::after {
            content: "";
            position: absolute;
            bottom: -3px;
            right: 0;
            width: 0;
            height: 2px;
            background: var(--gradient-primary);
            transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        .auth-login-register a:hover::after {
            width: 100%;
        }

        .auth-login-register a:hover {
            transform: scale(1.05);
        }

        .auth-login-register a i {
            transition: all 0.3s ease;
        }

        .auth-login-register a:hover i {
            transform: translateX(-3px);
        }

/* ===============================
   DECORATIVE ICONS
================================ */
.decorative-icon {
    position: absolute;
    font-size: 3rem;
    opacity: 0.08;
    animation: iconFloat 6s ease-in-out infinite;
    color: var(--primary);
    pointer-events: none;
    filter: drop-shadow(0 0 20px var(--primary-soft));
}

    .decorative-icon:nth-child(1) {
        top: 10%;
        right: 5%;
        animation-delay: 0s;
    }

    .decorative-icon:nth-child(2) {
        bottom: 15%;
        left: 8%;
        animation-delay: 2s;
    }

    .decorative-icon:nth-child(3) {
        top: 50%;
        right: 3%;
        animation-delay: 4s;
    }

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 576px) {
    .auth-login-card {
        padding: 2.5rem 1.8rem;
    }

    .section-badge {
        font-size: 0.95rem;
        padding: 0.6rem 2rem;
    }

    .decorative-icon {
        font-size: 2rem;
    }
}

/* ===============================
   UTILITY CLASSES
================================ */
input,
button {
    font-family: inherit;
    letter-spacing: 0.3px;
}

.auth-login-btn {
    font-weight: 800;
    letter-spacing: 0.5px;
}

.section-badge {
    font-weight: 800;
}

/* Text validation color */
.text-danger {
    color: #dc2626 !important;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(220, 38, 38, 0.1);
    animation: errorSlideIn 0.3s ease;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading animation for button */
.auth-login-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

    .auth-login-btn.loading::after {
        content: "";
        position: absolute;
        width: 20px;
        height: 20px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top-color: #fff;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Field focused state */
.auth-login-field.focused input {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

/* Enhanced hover effects */
.auth-login-card:hover {
    box-shadow: var(--shadow-xl), 0 0 40px rgba(20, 184, 166, 0.2);
}

/* Smooth transitions for all interactive elements */
a, button, input, i {
    transition: all 0.3s ease;
}
.auth-login-field select {
    width: 100%;
    padding: 16px 55px 16px 20px; /* نفس input */
    border-radius: var(--radius-md);
    border: 2px solid #e2e8f0;
    font-size: 0.95rem;
    background: var(--bg-light);
    color: var(--text-dark);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

    .auth-login-field select:focus {
        outline: none;
        border-color: var(--primary);
        background: var(--bg-white);
        box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
    }

    .auth-login-field select ~ i {
        top: 50%;
    }
.auth-login-field.has-select {
    position: relative;
}

    .auth-login-field.has-select::after {
        content: "\f078";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--primary);
        pointer-events: none;
    }
