*{
    margin: 2px;
    padding: 0;
    box-sizing: border-box;
}

.container{
    background: white;
    color: black;
    display: grid;
}

.top-bar{
    display: flex;
    gap: 50%;
    width: 100%;
    position: relative;
    z-index: 10;
}

.top-bar span{
    padding-top: 40px;
}
.top-bar .log{
    padding-left: 300px;
}
.logo{
    position: fixed;
    width: 120px;
    z-index: 0;
    top: 0;
    left: 0;
    margin-left: 1450px;
    pointer-events: none;
}
.top-bar .rt-text{
    top: 40px;
    position: relative;
    padding-left: 40px;
    z-index: 10;
}

.main-content{
    background: #01215c;
    width: 100%;
    min-height: calc(100vh - 20px);
    position: relative;
    z-index: 10;
    /* height: 100vh;   */
    /* gap: 5000px; */
}

.top-text{
    color: whitesmoke;
    font-size: 8px;
    align-items: flex-start;
    top: 0;
    
}

.form-group{
    background: whitesmoke;
    align-content: center;
    justify-content: center;
    display: inline-block;
    width: 50%;
    align-items: center;
    justify-items: center;
    margin-top: 150px;
    margin-left: 350px;
    margin-bottom: 150px;
    height: 40vh;
    
}
form{
    background: rgb(230, 228, 228);
    height: 28vh;
    border-radius: 6px;
    padding: 30px 40px;
    text-align: left;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.2);
    position: relative;
    width: 700px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
}
form label {
    font-size: 14px;
    font-weight: 800;
    color: black;
    padding-bottom: 10px;
    width: 150px;
    display: flex;
    flex-direction: column;
    
}
form input {
    /* padding: 5px; */
    font-size: 14px;
    width: 60%;
    box-sizing: border-box;
    
}
.form-input{
    display: flex;
    padding-bottom: 10px;
    flex-direction: row;
    
}
.password{
    padding-left: 60px;
}
button {
    align-self: flex-end;
    padding: 6px 14px;
    font-size: 14px;
    background-color: #e0e0e0;
    border: 1px solid #999;
    cursor: pointer;
    align-items: flex-end;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

button:hover {
    background-color: #c0c0c0;
}

.login-text{
    position: relative;
    top: 18px;
    margin-left: -610px;
    background: #d3d3d3;
    padding: 5px 12px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    border: 1px solid #bbb;
    border-bottom: none;
}

.bottom-text{
    color: whitesmoke;
    font-size: 8px;
    align-items: last baseline;
    
}


.custom-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.alert-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 300px;
}

#alertMessage {
    display: block;
    color: #d32f2f;
    font-size: 16px;
    margin-bottom: 15px;
}
.close-btn {
    background-color: #d32f2f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.close-btn:hover {
    background-color: #b71c1c;
}
@media (max-width:1524px){
    .top-bar{
        gap:40%;
    }

    .logo{
        position: fixed;
        width: 130px;
        z-index: 0;
        top: 0;
        left: 0;
        margin-left: 1200px;
        pointer-events: none;
    }
    form{
        width: 90%;
        margin-top: 5px;
        height: 150px;
    }

    .login-text{
        top: 1px;
        margin-left: 130px;
    }
    
}

@media (max-width: 1440px) {
    .top-bar{
        gap: 30%;
    }
    .logo{
        margin-left: 1150px;
    }
    .login-text{
        display: none;
    }
}

@media (max-width: 1290px) {
    .top-bar {
        display: flex;
        gap: 35%;
        width: 100%;
        font-size: 18px;
    }

    .logo{
        position: fixed;
        width: 130px;
        z-index: 0;
        top: 0;
        left: 0;
        margin-left: 1180px;
        pointer-events: none;
    }
    

    .top-text{
        font-size: 15px;
    }

    .form-group{
        width: 70%;
        margin-left: 200px;
        font-size: 13px;
    }

    form {
        font-size: 15px;
        width: 90%;
    }
}
@media (max-width: 1200px) {
    .top-bar{
        gap: 30%;
    }
    .logo{
        margin-left: 1080px;
    }
    .login-text{
        display: none;
    }
}

@media (max-width: 1024px) {
    .top-bar {
        display: flex;
        gap: 25%;
        width: 100%;
        font-size: 15px;
    }
    .logo{
        position: fixed;
        width: 120px;
        z-index: 0;
        top: 0;
        left: 0;
        margin-left: 910px;
        pointer-events: none;
    }

    .top-text{
        font-size: 15px;
    }

    .form-group{
        width: 70%;
        margin-left: 200px;
        font-size: 13px;
    }

    form {
        font-size: 15px;
    }
}





/* For tablets (widths between 601px and 992px) */
@media (max-width: 992px) {
    .top-bar{
        gap: 42%;
        display: flex;
        width: 100%;
        font-size: 15px;

    }
    .top-bar span{
        padding-top: 40px;
    }
    .top-bar .log{
        padding-left: 10px;
    }
    .logo{
        position: fixed;
        width: 100px;
        z-index: 0;
        top: 0;
        left: 0;
        margin-left: 700px;
        pointer-events: none;
    }
    
    /* .main-content{
        min-height: calc(100vh - 20px);
    } */
    .top-text{
        font-size: 12px;

    }

    .form-group {
        width: 70%;
        margin-left: 150px;
        margin-right: auto;
        margin-top: 300px;
        margin-bottom: 200px; 
        height: 220px;
        /* height: 200px;
        width: 200px; */
        
    
        
        
        
    }

    form {
        /* width: auto;
        height: auto; */
        height: 155px;
        width: 90%;
    }

    .login-text {
        left: -200px;
        top: 15px;
        
    }

    .bottom-text{
        align-items: last baseline;
        justify-items: baseline;
    }
}

@media (max-width: 900px) {
    .top-bar{
        gap: 25%;
    }
    .logo{
        margin-left: 1550px;
    }
    /* .login-text{
        display: none;
    } */
}


@media (max-width: 700px) {
    .top-bar{
        gap: 20%;
    }
    .logo{
        margin-left: 550px;
    }
    /* .login-text{
        display: none;
    } */
}

/* For mobile devices (widths 600px and below) */
@media (max-width: 600px) {
    .top-bar{
        display: flex;
        gap: 13%;
        width: 100%;
        font-size: 9px;
        font-weight: 600;
    }

    .logo{
        position: fixed;
        width: 90px;
        z-index: 0;
        top: 0;
        left: 0;
        margin-left: 350px;
        pointer-events: none;
    }

    

    .form-group {
        
        align-items: center;
        justify-items: center;
        margin-top: 100px;
        margin-left: 40px;
        margin-bottom: 200px;
        width: 80%;
        height: 200px;
        
        
                
    }

    form {
        width: 80%;
        height: 150px;
        margin-top: 1px;
    }

    form label {
        font-size: 10px;
        width: 70%;
        padding: 0;
    }
    form input {
        /* padding: 5px; */
        font-size: 14px;
        width: 100%;
        box-sizing: border-box;
    
    }
    .password {
        padding-left: 0px;
    }

    

    button {
        font-size: 12px;
        padding: 5px 10px;
    }

    .login-text {
        /* left: -85px; */
        top: 1px;
        margin-left: 230px;
        
    }

    .top-text {
        font-size: 6px;
    }
    .bottom-text{
    color: whitesmoke;
    font-size: 5px;
    align-items: last baseline;
    
    }

    .alert-content {
        width: 90%;
        padding: 15px;
    }

    .close-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    footer {
        font-size: 10px;
        padding: 10px;
        text-align: center;
    }
}

