@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: 'Inter',sans-serif;
    position: relative;
    overflow: hidden;
}

.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* BACKGROUND IMAGE */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('/Images/loginbg.png') center center / cover no-repeat;
    filter: blur(8px);
    transform: scale(1.05);
    z-index: -2;
}

/* DARK OVERLAY */

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10,20,40,0.45);
    z-index: -1;
}

/* LOGIN CARD */

.login-container {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: rgba(255,255,255,0.90);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
    text-align: center;
    width: 420px;
    position: relative;
    overflow: hidden;
    perspective: 1400px;
    animation: cardRise .6s cubic-bezier(.16,1,.3,1) both;
    transition: box-shadow .3s ease, transform .3s ease;
}

/* ENTRY ANIMATION */

@keyframes cardRise {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* CARD HOVER EFFECT */

.login-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 70px rgba(0,0,0,.4);
}

/* TOP GRADIENT BAR */

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient( 90deg, #1d4ed8, #2563eb, #c9922a, #f0b830, #2563eb, #1d4ed8 );
    background-size: 300% 100%;
    animation: barShimmer 4s linear infinite;
}

@keyframes barShimmer {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 300% 0;
    }
}

/* FLIP SYSTEM */

.card-inner {
    position: relative;
    width: 100%;
    transition: transform .8s cubic-bezier(.4,.2,.2,1);
    transform-style: preserve-3d;
}

.login-container.flipped .card-inner {
    transform: rotateY(180deg);
}

/* CARD FACES */

.card-face {
    width: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0 25px;
}

/* BACK SIDE */

.card-back {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    height: 100%;
    transform: rotateY(180deg);
}

/* LOGO */

.logo-wrapper {
    margin: 25px 40px 15px;
}

    .logo-wrapper img {
        width: 200px;
    }

/* INPUT FIELDS */

input {
    width: calc(100% - 80px);
    margin: 0 40px 14px;
    padding: 12px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #1a2b4a;
    font-size: 14px;
    outline: none;
    transition: all .25s ease;
}

    input::placeholder {
        color: #9ca3af;
    }

    input:focus {
        border-color: #2563eb;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(37,99,235,.1);
    }

/* BUTTON */

button {
    width: calc(100% - 80px);
    margin: 12px 40px 22px;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 4px 14px rgba(37,99,235,.35);
}

    button:hover {
        background: #1d4ed8;
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(37,99,235,.45);
    }

    button:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(37,99,235,.3);
    }

/* SWEETALERT BUTTON FIX — reset global button styles that break centering */

.swal2-confirm {
    width: auto !important;
    margin: 0 !important;
    text-align: center !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* FORGOT PASSWORD LINK */

.forgot-wrapper {
    width: calc(100% - 80px);
    margin: -5px 40px 10px;
    text-align: right;
}

    .forgot-wrapper span {
        font-size: 13px;
        color: #2563eb;
        cursor: pointer;
        font-weight: 500;
    }

        .forgot-wrapper span:hover {
            text-decoration: underline;
        }
