@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background:  #ffffff;
    margin: 0;
}

.maincontainer{
    /* margin-top: 5px; */
    width: 100%;
    height: 850px;
    /* border-radius: 5px; */
    display: flex;
    flex-direction: row; 
    gap: 10px; 
    align-items: center; 
    justify-content: center; 
    position: relative;
    background-image: url('/images/elyely.png'); 
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat; 
    /* box-shadow: 4px 4px 5px rgba(0, 0.7, 0, 0.5);  */

}

/*black tint*/
.maincontainer::before {
    content: ""; 
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(6, 30, 74, 0.604);
    /* border-radius: 10px;  */
    z-index: 1; 
}

.logo-container {
    position: relative;
    display: flex; 
    align-items: center;
    justify-content: center; 
    margin: 0;
    padding: 0; 
    width: 800px;
    height: auto;
    z-index: 2;
}

.logopic {
    max-width: 90%; 
    height: auto; 
    margin-right: 170px; 
    padding: 0; 
}

.login-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
    outline: solid 1px #18274b;
    border-radius: 8px;
    background-color: #fff;
    width: 100%;
    max-width: 500px;
    height: 700px;
    margin: 0; 
    box-shadow: 4px 4px 5px rgba(0, 0.7, 0, 0.5); 
    z-index: 2;
    position: relative;
}

.formlogincontainer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 40px 20px;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.alert-success {
    color: #155724; /* Text color */
    background-color: #d4edda; /* Background color */
    border: 2px solid #155724; /* Adding a 2px border with the same color */
    border-radius: 5px; /* Round the corners */
    padding: 20px 20px;
    font-weight: bold;
    text-align: center;
    width: 90%;
    margin: 0;
    position: absolute;
    margin-left: 6%;
    margin-right: 6%;
    top: 5%;
}

.alert-danger{
    color: #c00808; /* Text color */
    background-color: #edd4d4; /* Background color */
    border: 2px solid #c00808; /* Adding a 2px border with the same color */
    border-radius: 5px; /* Round the corners */
    padding: 20px 20px;
    font-weight: bold;
    text-align: center;
    width: 90%;
    margin: 0;
    position: absolute;
    margin-left: 6%;
    margin-right: 6%;
    margin-top: 10px;
    top: 5%;
}

.uname, .pword {
    font-size: 14px;
    font-weight: bold;
    color: #18274b;
    padding-top: 10px;
}

.input {
    width: calc(100% - 3px);
    height: 50px;
    padding: 12px 16px;
    border: 1px solid #18274b;
    border-radius: 8px;
    background-color: #fff;
    box-sizing: border-box;
    margin-top: 5px;
}

.loginbtn {
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    background-color: #1638f3;
    color: white;
    border-radius: 7px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.loginbtn:hover {
    background-color: #1127a4;
}

.dont {
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .logo-container {
        width: 100%;
        margin-right: 0;
        top: -30%;
    }

    .logopic {
        margin-right: 0;
        max-width: 20%; 
        margin-top: 0;
    }

    .login-container {
        max-width: 70%;
        height: auto;
        margin: auto;
        position: absolute;
        top: 60%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .formlogincontainer {
        max-width: 90%;
        padding: 20px 15px;
    }

    .input {
        height: 45px;
        padding: 10px 14px;
    }

    .loginbtn {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .logo-container {
        width: 100%;
    }

    .logopic {
        max-width: 30%;
        margin-right: 0;
    }

    .login-container {
        max-width: 90%;
        height: auto;
        top: 55%;
    }
    .logoname{
        width: 80%;
        display: block;
        margin: 0 auto;
    }
    .formlogincontainer {
        max-width: 95%;
        padding: 20px 10px;
    }

    .input {
        height: 40px;
        padding: 8px 12px;
    }

    .loginbtn {
        font-size: 12px;
    }
} 
@media (max-width: 380px) {
    .logo-container {
        top: -35%;
    }
    .login-container {
        max-width: 90%;
        height: auto;
        top: 47%;
    }
}
/* ----------- Non-Retina Screens ----------- */
@media screen 
  and (min-device-width: 1200px) 
  and (max-device-width: 1600px) 
  and (-webkit-min-device-pixel-ratio: 1) { 
}

/* ----------- Retina Screens ----------- */
@media screen 
  and (min-device-width: 1200px) 
  and (max-device-width: 1600px) 
  and (-webkit-min-device-pixel-ratio: 2)
  and (min-resolution: 192dpi) { 
} 