/* ================= Base Variables & Reset ================= */
:root {
    --navy: #1a237e;
    --purple: #ab47bc;
    --teal: #26c6da;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body {
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    /* تحسين السكرول */
    overflow-x: hidden;
    overflow-y: auto;
    position: relative; /* مهم للـ z-index */
}

/* ================= Animated Background ================= */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Glowing Orbs */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: move 10s infinite alternate;
}
.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--navy);
    top: -10%;
    left: -10%;
}
.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--purple);
    bottom: 10%;
    right: -5%;
    animation-duration: 15s;
}
.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--teal);
    top: 40%;
    left: 40%;
    animation-duration: 12s;
    opacity: 0.4;
}

/* Floating Code Symbols */
.code-symbol {
    position: absolute;
    color: rgba(255, 255, 255, 0.03);
    font-weight: 900;
    font-size: 8rem;
    animation: floatRotate 20s infinite linear;
}
.s2 {
    bottom: 20px;
    left: 20px;
    animation-duration: 25s;
    font-size: 6rem;
}

@keyframes move {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(30px, 30px);
    }
}
@keyframes floatRotate {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-50px) rotate(180deg);
    }
    100% {
        transform: translateY(0) rotate(360deg);
    }
}

/* ================= Login Card Wrapper ================= */
.login-card-wrapper {
    width: 950px;
    min-height: 600px; /* لضمان وجود مساحة كافية */
    height: auto; /* للتمدد حسب المحتوى */

    background: #fff; /* خلفية بيضاء صافية للفورم */
    border-radius: 30px;
    overflow: hidden;

    /* تأثير الزجاج الخارجي */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);

    margin: 80px auto; /* مساحة علوية وسفلية كافية */
    z-index: 2; /* فوق الخلفية المتحركة */
}

/* === Left Side (Visual) === */
.visual-side {
    position: relative;
    background-color: var(--navy); /* لون احتياطي */
    overflow: hidden;
}

.hero-img {
    width: 280px;
    transition: transform 0.3s;
    margin-bottom: 20px;
}
.floating-anim {
    animation: floatImage 4s ease-in-out infinite;
}

@keyframes floatImage {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* === Right Side (Form) === */
.form-side {
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
    position: relative;
    z-index: 3;
}

/* Helpers */
.text-navy {
    color: var(--navy);
}
.text-purple {
    color: var(--purple);
}
.text-teal {
    color: var(--teal);
}

.logo-badge {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--teal), var(--purple));
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Inputs */
.input-group-custom {
    position: relative;
}
.form-control {
    border: 2px solid #f0f2f5;
    background: #f8faff;
    padding-left: 20px;
    padding-right: 45px;
    height: 55px; /* ارتفاع مريح */
    transition: 0.3s;
}
.form-control:focus {
    border-color: var(--teal);
    box-shadow: 0 4px 15px rgba(38, 198, 218, 0.1);
    background: #fff;
}
.icon-suffix {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 1.1rem;
    transition: 0.3s;
}
.form-control:focus ~ .icon-suffix {
    color: var(--teal);
}

/* Main Button */
.btn-login {
    background: linear-gradient(90deg, var(--navy) 0%, var(--purple) 100%);
    border: none;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    transition: 0.3s;
}
.btn-login:hover,
.hover-scale:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 35, 126, 0.25);
}

/* Social Login */
.divider .line {
    height: 1px;
    background-color: #eee;
}

.btn-social {
    border: 2px solid #f3f4f6;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.btn-social:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-google:hover {
    color: #db4437;
    border-color: #ffebee;
    background: #fff5f5;
}
.btn-facebook:hover {
    background-color: #1877f2;
    color: #fff !important;
}
.btn-facebook:hover i {
    color: #fff !important;
}
.btn-social::after {
    content: "✨";
    position: absolute;
    right: 15px;
    opacity: 0;
    transition: 0.3s;
    transform: scale(0);
}
.btn-social:hover::after {
    opacity: 1;
    transform: scale(1);
}

.cursor-pointer {
    cursor: pointer;
}
.hover-underline:hover {
    text-decoration: underline !important;
}

/* Responsive */
@media (max-width: 991px) {
    .login-card-wrapper {
        margin: 20px;
        width: 95%;
        height: auto;
    }
    .form-side {
        padding: 40px 25px !important;
    }
}
/* تصميم الجانب الأيسر الجديد */
.visual-side {
    background: rgba(15, 23, 42, 0.85); /* كحلي غامق متدرج */
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.glow-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        rgba(38, 198, 218, 0.3) 0%,
        transparent 70%
    );
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.icon-3d-wrapper {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-icon {
    font-size: 3.5rem;
    color: #fff;
    filter: drop-shadow(0 0 15px rgba(38, 198, 218, 0.8)); /* توهج للأيقونة */
}

/* حركة الطفو */
.floating-anim {
    animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

/* حركة النبض للخلفية */
.ring-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulseRing 2s infinite;
}
@keyframes pulseRing {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.dots-decoration span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 3px;
}
