* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('https://res.cloudinary.com/ddja5g5wa/image/upload/v1765882412/bga_etk3l5.png') no-repeat center center fixed;
    background-size: cover;
    color: #fff;
    min-height: 100vh; 
    display: flex;
    align-items: center; 
    justify-content: center;
    overflow-x: hidden; 
    overflow-y: auto;   
    padding: 10px 0; 
}

form {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in-out;
    text-align: center;
    color: black;
}

center {
    position: fixed !important;
    bottom: 0px !important;
    right: 0px !important;
    left: auto !important;
    top: auto !important;
    z-index: 99999 !important;
    text-align: right !important;
    background-color: transparent !important;
    padding: 5px !important;
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    color: black;
}

.input-box {
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: black;
    border-color: blue;
    font-size: 1rem;
    transition: all 0.3s ease-in-out;
}

    .input-box:focus {
        outline: none;
        border-color: #60a5fa;
        background: rgba(255, 255, 255, 0.15);
    }

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #3b82f6, #2563eb);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        background: linear-gradient(to right, #2563eb, #1d4ed8);
    }

.error-message {
    text-align: center;
    color: #f87171;
    font-weight: 500;
    margin-top: 12px;
}

.login-link { 
    margin-top: 25px;
    text-align: center;
    font-size: 0.95rem;
    color: #cbd5e1;
}

    .login-link a {
        color: #60a5fa;
        text-decoration: none;
        font-weight: 500;
    }

        .login-link a:hover {
            text-decoration: underline;
        }

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* @media (min-width: 501px) */
@media (min-width: 501px) {
    form {
        padding: 40px;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .input-box {
        padding: 14px 18px;
        margin-bottom: 20px;
        font-size: 1rem;
    }

    .btn-primary {
        padding: 14px;
        font-size: 1rem;
    }

    .login-link {
        margin-top: 25px;
        font-size: 0.95rem;
    }
}

/* @media (max-width: 500px) */
@media (max-width: 500px) {
    form {
        padding: 20px 15px 15px 15px; 
        border-radius: 16px;
        max-width: 100%;
    }
    
    h1 {
        font-size: 1.6rem; 
        margin-bottom: 20px;
    }
    
    .input-box {
        padding: 10px 12px; 
        margin-bottom: 15px;
        font-size: 0.95rem;
    }

    .btn-primary {
        padding: 12px;
        font-size: 0.9rem;
    }

    .login-link {
        margin-top: 15px;
        font-size: 0.85rem;
    }
    
    .error-message {
        margin-top: 8px;
    }
}