
body {
    background-color: #111;
    font-family: 'Roboto', sans-serif;
    color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column;
}

#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: 300px; /* or adjust as needed */
    max-width: 90%;
    padding: 10px;
}

.login-container {
    background: linear-gradient(37deg, #111, #222, #111);
    background-size: 600% 600%;
    animation: AnimationName 19s ease infinite;
    background-color: #1e1e1e;
    border-radius: 8px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-top: 70px; /* Make space for toast */
}

@keyframes AnimationName {
    0% { background-position: 81% 0%; }
    50% { background-position: 20% 100%; }
    100% { background-position: 81% 0%; }
}


a {
    color: lightgreen;
}

a:hover {
    color: lightblue;
}

.logo-here{
    display: flex;
    flex-direction: column;
    align-items: center;

}

.login-footer{

    text-align: center;
    padding: 15px;
}

.logo-here * {
    margin: 5px;}

h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
}

input {
    padding: 12px;
    background-color: #333;
    border: 1px solid #444;
    border-radius: 4px;
    color: #f4f4f4;
    text-align: center;
}

input:focus {
    border-color: #007BFF;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #024b1d; /* WhatsApp Green */
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #128C7E; /* WhatsApp Dark Green */
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: #25D366;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.flash-message {
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
}

.flash-message.success {
    background-color: #28a745;
    color: #fff;
}

.flash-message.danger {
    background-color: #dc3545;
    color: #fff;
}

/* Toast Notification Styles */
.toast {
    visibility: hidden;
    min-width: 200px;
    width: 100%;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 10px 20px;
    position: fixed;
    top: 25vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: visibility 0.3s, opacity 0.3s ease-in-out;
    opacity: 0;
}

.toast.show {
    visibility: visible;
    opacity: 1;
}

.toast.success {
    background-color: #28a745;
}

.toast.danger {
    background-color: #dc3545;
}

.toast.info {
    background-color: #17a2b8;
}

.toast.warning {
    background-color: #ffc107;
}
body *{

    animation: fadeInUp 0.5s linear
}

/* Animations */
@keyframes fadeInUp {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


@media (max-width: 768px) {
    body {
        flex-direction: column;
        padding: 10px;
        height: auto;
        min-height: 100vh;
    }

    #toast-container {
        top: 10px;
        width: 90%;
        max-width: none;
        padding: 8px;
    }

    .login-container {
        margin: 20px;
        width: 70%;
        max-width: 80%;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding:25px;
    }


    form{

        width:100%
    }
    h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    input {
        padding: 10px 0;
        width: 100%;
    }

    .submit-btn {
        font-size: 14px;
        padding: 10px;
    }

    .form-footer {
        font-size: 14px;
        margin-top: 15px;
    }

    .logo-here {
        margin-bottom: 15px;
    }

    .logo-here * {
        margin: 3px;
    }

    .flash-message {
        padding: 8px;
        font-size: 14px;
    }

    .toast {
        font-size: 14px;
        padding: 8px 15px;
        top: 20vh;
    }

    .login-footer {
        padding: 10px;
        font-size: 12px;
    }
}



@media (max-width: 768px) {

    .main-content{
        margin:0;
        padding:0;
        
    }
    
}

input{width: 93.5%;}