body {
    font-family: 'Poppins', sans-serif;
    background-image: url('../images/adminlogin.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    min-height: 100vh;
    margin: 0;
    padding: 1rem;
    box-sizing: border-box;
}

.login-container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 28px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
    opacity: 1;
    box-sizing: border-box;
    animation: flip 0.5s linear;
    transform-origin: center center;
}
@keyframes flip {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.logo {
    display: block;
    width: 75px;
    height: 75px;
    margin: auto;
    transform: rotate(0deg);
    opacity: 1;
}

.welcome-text {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    font-style: normal;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-label {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

.form-control {
    border-radius: 5px;
}

.btn-primary {
    background-color: #001A67;
    border: none;
    width: 100%;
    padding: 10px;
    font-family: 'Roboto', sans-serif;
}

.btn-primary:hover {
    background-color: #003087;
}

.alert {
    margin-top: 1rem;
    font-size: 14px;
}

.text-link {
    color: #001A67;
    text-decoration: none;
    font-weight: 500;
}

.text-link:hover {
    text-decoration: underline;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    body {
        justify-content: center;
        align-items: center;
    }
    .login-container {
        padding: 1.5rem;
        width: 95%;
    }
    .welcome-text {
        font-size: 16px;
    }
    .logo {
        width: 60px;
        height: 55.3846153846px; /* Maintain aspect ratio */
    }
    h2 {
        font-size: 1.5rem;
    }
}

@media (min-width: 769px) {
    body {
        justify-content: flex-end;
        align-items: center;
        padding-right: 2rem; /* Add some padding to avoid edge alignment */
    }
    .login-container {
        width: 70%;
        max-width: 400px;
    }
    .welcome-text {
        font-size: 18px;
    }
}