@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');


body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 40px 32px;
    animation: fadeIn 1s ease;
}


h1 {
    text-align: center;
    color: #2d3a4a;
    margin-bottom: 28px;
    font-size: 1.8rem;
    font-weight: 700;
}

form .inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}


input[type="text"],
input[type="password"] {
    padding: 14px 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    background: #fff; 
    transition: all 0.3s ease;
}


input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px #9A1C1F;
}


button[type="submit"] {
    margin-top: 12px;
    padding: 14px 18px; 
    background: #9A1C1F;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: #701214;
}

.alert {
    padding: 14px 20px;
    border-radius: 8px;
    margin: 20px 0;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    position: absolute; 
    top: 10px; 
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 300px; 
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.alert-danger {
    background: #9A1C1F;
    color: #ffffff;
    border: 1px solid #831618;
}

@media (max-width: 480px) {
    main {
        margin: 20px;
        padding: 28px 20px;
    }

    h1 {
        font-size: 1.5rem;
    }

    input[type="text"],
    input[type="password"],
    button[type="submit"] {
        font-size: 1rem;
    }
}


.login-description {
    text-align: center;
    color: #6c757d;  
    font-size: 0.95rem; 
    margin-top: 16px 0 24px 0;  
    margin-bottom: 28px;
}


