* {
    font-family: "Cairo", sans-serif;
}

body {
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

/* ── Login Wrapper ── */
.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ── Form Side ── */
.login-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    background: #f8f9fb;
    position: relative;
    overflow: hidden;
}

/* Subtle animated background gradient on form side */
.login-form-side::before {
    content: "";
    position: absolute;
    top: -100%;
    right: -100%;
    width: 300%;
    height: 300%;
    background:
        radial-gradient(
            circle at 60% 40%,
            rgba(37, 87, 167, 0.04) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 30% 80%,
            rgba(26, 58, 108, 0.03) 0%,
            transparent 50%
        );
    animation: formBgFloat 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes formBgFloat {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(5%, -3%) rotate(2deg);
    }
    66% {
        transform: translate(-3%, 5%) rotate(-1deg);
    }
}

.login-form-side > * {
    position: relative;
    z-index: 1;
}

/* ── Info Side ── */
.login-info-side {
    flex: 1;
    background: linear-gradient(
        135deg,
        #0a1628 0%,
        #122a50 40%,
        #1a3a6c 70%,
        #2557a7 100%
    );
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.login-info-side::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(37, 87, 167, 0.2) 0%,
        transparent 60%
    );
    animation: pulse 8s infinite;
}

/* Floating orbs on info side */
.login-info-side::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(37, 87, 167, 0.15) 0%,
        transparent 70%
    );
    top: -100px;
    left: -100px;
    animation: orbFloat 12s ease-in-out infinite;
}

@keyframes orbFloat {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, 30px) scale(1.2);
    }
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ── Logo ── */
.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: logoReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.login-logo svg {
    max-width: 70px;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(37, 87, 167, 0.15));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-logo:hover svg {
    transform: scale(1.08) rotate(-2deg);
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #28a745;
    border-radius: 50%;
    display: inline-block;
    margin-left: 4px;
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
}

@keyframes dotPulse {
    0%,
    100% {
        box-shadow: 0 0 4px rgba(40, 167, 69, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 12px rgba(40, 167, 69, 0.8);
        transform: scale(1.3);
    }
}

/* ── Header ── */
.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-header h2 {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 5px;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.login-header h1 {
    font-size: 1.7rem;
    font-weight: 900;
    color: #1a3a6c;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards;
    opacity: 0;
    transform: translateY(20px);
    background: linear-gradient(135deg, #1a3a6c, #2557a7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Animations ── */
@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes borderGlow {
    0%,
    100% {
        border-color: #dee2e6;
        box-shadow: none;
    }
    50% {
        border-color: rgba(37, 87, 167, 0.3);
        box-shadow: 0 0 0 3px rgba(37, 87, 167, 0.08);
    }
}

/* ── Form Fields ── */
.form-floating {
    margin-bottom: 16px;
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
}

.password-toggle {
    position: absolute;
    left: 15px;
    top: 28px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.1rem;
}

.password-toggle:hover {
    color: #2557a7;
    transform: translateY(-50%) scale(1.1);
}

.form-floating .form-control {
    padding-left: 45px !important;
}

.form-floating:nth-child(1) {
    animation-delay: 0.4s;
}
.form-floating:nth-child(2) {
    animation-delay: 0.5s;
}

.form-floating .form-control {
    border-radius: 14px;
    border: 1.5px solid #dee2e6;
    padding: 16px;
    height: 56px;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: white;
}

.form-floating .form-control:focus {
    border-color: #2557a7;
    box-shadow:
        0 0 0 4px rgba(37, 87, 167, 0.1),
        0 4px 12px rgba(37, 87, 167, 0.08);
    transform: translateY(-1px);
}

.form-floating label {
    transition: all 0.3s ease;
}

.form-floating label i {
    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.form-floating .form-control:focus ~ label i {
    color: #2557a7;
    transform: scale(1.15);
}

/* ── Button ── */
.btn-login {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1a3a6c, #2557a7, #1a3a6c);
    background-size: 200% 100%;
    border: none;
    color: #fff;
    margin-top: 10px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.btn-login::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.6s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover,
.btn-login:focus,
.btn-login:active {
    transform: translateY(-3px) scale(1.01);
    box-shadow:
        0 8px 25px rgba(37, 87, 167, 0.35),
        0 0 40px rgba(37, 87, 167, 0.1);
    background-position: right center;
    color: #fff !important;
}

/* ── Links ── */
.forgot-link {
    text-align: center;
    margin-top: 12px;
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.forgot-link a {
    color: #2557a7;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
    position: relative;
}

.forgot-link a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 1.5px;
    background: #2557a7;
    transition: width 0.3s ease;
}

.forgot-link a:hover::after {
    width: 100%;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #6c757d;
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.register-link a {
    color: #2557a7;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s;
}

.register-link a:hover {
    color: #1a3a6c;
}

/* ── News Section ── */
.news-section {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 500px;
    animation: fadeInScale 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

.news-section h3 {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.news-section h2 {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.news-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 24px;
    text-align: right;
    margin-bottom: 20px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideInRight 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
    opacity: 0;
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.news-card p {
    font-size: 0.85rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.news-thumbs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

.news-thumb {
    width: 150px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.news-thumb:nth-child(1) {
    animation-delay: 0.7s;
}
.news-thumb:nth-child(2) {
    animation-delay: 0.85s;
}
.news-thumb:nth-child(3) {
    animation-delay: 1s;
}

.news-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px) scale(1.03);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.news-thumb .thumb-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease;
}

.news-thumb:hover .thumb-icon {
    transform: scale(1.15) rotate(-5deg);
}

/* ── Floating Shapes (Form Side) ── */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
    animation: shapeFloat linear infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #383172, #5a4fa7);
    top: 10%;
    right: 10%;
    animation-duration: 18s;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #2d2760, #383172);
    bottom: 15%;
    left: 5%;
    animation-duration: 22s;
    animation-delay: -3s;
    border-radius: 30%;
}

.shape-3 {
    width: 50px;
    height: 50px;
    background: #383172;
    top: 50%;
    right: 25%;
    animation-duration: 15s;
    animation-delay: -7s;
}

.shape-4 {
    width: 35px;
    height: 35px;
    background: #5a4fa7;
    top: 30%;
    left: 20%;
    animation-duration: 20s;
    animation-delay: -5s;
    border-radius: 20%;
}

.shape-5 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #383172, transparent);
    bottom: 30%;
    right: 15%;
    animation-duration: 25s;
    animation-delay: -10s;
}

@keyframes shapeFloat {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(30px, -40px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(-20px, -80px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translate(40px, -30px) rotate(270deg) scale(1.05);
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* ── Particles Canvas ── */
#particlesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ── Floating Orbs (Info Side) ── */
.floating-orbs {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
}

.orb-1 {
    width: 250px;
    height: 250px;
    background: rgba(37, 87, 167, 0.25);
    top: -60px;
    right: -60px;
    animation: orbDrift1 14s ease-in-out infinite;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: rgba(26, 58, 108, 0.3);
    bottom: -40px;
    left: -40px;
    animation: orbDrift2 18s ease-in-out infinite;
}

.orb-3 {
    width: 150px;
    height: 150px;
    background: rgba(100, 150, 255, 0.15);
    top: 40%;
    left: 30%;
    animation: orbDrift3 12s ease-in-out infinite;
}
.login-form-side {
    overflow-y: auto;
    height: 100vh;
    display: block;
    position: static;
}

@keyframes orbDrift1 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-40px, 50px) scale(1.2);
    }
}

@keyframes orbDrift2 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, -40px) scale(1.15);
    }
}

@keyframes orbDrift3 {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(30px, -30px) scale(1.3);
        opacity: 0.8;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.8);
        opacity: 0.4;
    }
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-info-side {
        display: none;
    }

    .login-form-side {
        padding: 40px 30px;
    }
    .login-form-side::before {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .login-form-side {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 1.4rem;
    }
}
