:root {
    --bg: #062367;
    --card: #ffffff;
    --primary: #2563eb;
    --danger: #dc2626;
    --text: #1f2937;
    --muted: #6b7280;
}

* {
    box-sizing: border-box;
    font-family: "Cairo", sans-serif !important;
}


body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top right, #1e3a8a, #011054 70%);
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: var(--card);
    border-radius: 22px;
    padding: 34px 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

.brand {
    text-align: center;
    margin-bottom: 22px;
}

.brand img.logo {
    max-width: 130px;
    margin-bottom: 5px;
    display: block;

}

.brand h1 {
    margin: 0;
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
}

.brand small {
    color: var(--muted);
    font-weight: 700;
}

.login-box h2 {
    text-align: center;
    margin: 20px 0 26px;
    color: var(--text);
    font-size: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    font-size: 15px;
    outline: none;
    transition: .25s;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: .25s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, .45);
}

.error {
    background: #fee2e2;
    color: var(--danger);
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    margin-bottom: 18px;
    text-align: center;
}

.footer {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}

.brand {
    text-align: center;
    animation: fadeDown .8s ease forwards;
}

/* اللوجو – Desktop */
.brand .logo {
    max-width: 130px;
    margin: 0 auto 14px;
    display: block;

    /* ظل خفيف */
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .18));

    animation: logoPop .9s cubic-bezier(.22, 1, .36, 1) forwards;
}

/* العنوان */
.brand h1 {
    opacity: 0;
    animation: fadeUp .6s ease forwards;
    animation-delay: .35s;
}

.brand small {
    opacity: 0;
    animation: fadeUp .6s ease forwards;
    animation-delay: .5s;
}

/* أنيميشن Desktop */
@keyframes logoPop {
    0% {
        opacity: 0;
        transform: translateY(-14px) scale(.92);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes fadeDown {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

/* =========================
   📱 Mobile Optimizations
   ========================= */
@media(max-width:600px) {

    .brand .logo {
        max-width: 90px;
        /* تصغير تلقائي */
        margin-bottom: 10px;

        /* ظل أخف للموبايل */
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .15));

        /* أنيميشن أهدى */
        animation: logoPopMobile .6s ease-out forwards;
    }

    .brand h1 {
        font-size: 20px;
        animation-delay: .25s;
    }

    .brand small {
        font-size: 13px;
        animation-delay: .35s;
    }
}

/* أنيميشن أخف للموبايل */
@keyframes logoPopMobile {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.one {
    font-size: 20px;
    color: var(--primary);
}

 