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

body {
    justify-content: center;
    height: 100vh;
    flex-direction: column;
    background-color: #fff;
    margin: 0;
}

.container {
    width: 500px;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
}

h1 {
    text-align: center;
    font-family: "Roboto", sans-serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 64px;
    color: #4F4CFD;
    padding-bottom: 8px;
    margin-bottom: 0px; 
}

p {
    margin-top: 0;
    text-align: center;
    margin-bottom: 0;
    font-family: "Roboto", sans-serif;
    color: #0D0D0D;
    font-size: 24px;
    font-weight: 400;
    line-height: 36px;
    padding-bottom: 40px;
    padding-top: 0;
}

h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 30px;
    color: #0D0D0D;
    font-weight: 700;
    line-height: 36px;
    text-align: left;  
    margin: 0;
    width: 426px; 
    padding: 0 0 15px 0; 
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
    margin: 0;
}

input {
    width: 386px;
    padding: 0 19px;
    margin: 6px 0;
    border: 1px solid #4F4CFD;
    border-radius: 12px;
    height: 48px;
    font-size: 16px;
}

input:focus {    
    border: 2px solid #4F4CFD;
    outline: none; 
}

.button {
    margin-top: 12px;
    padding: 10px 0;
    background-color: #0D0D0D;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 22px;
    font-weight: 600;
    border-radius: 32px;
    width: 426px;
    height: 56px;
    font-family: 'Roboto', sans-serif;
    padding-bottom: 8px;
}

a {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 18px;
    text-align: left;
    color: #0D0D0D;
    width: 426px;
    padding-top: 22px;
}

.checkbox-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 426px;
    padding-top: 8px;
    margin-top: 0;   
}

.checkbox-container label {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
    font-family: 'Roboto', sans-serif;    
    color: rgba(102, 102, 102, 0.8);  
    margin: 0 0 8px 0;
    text-decoration: underline;
}

.checkbox-container input {
    width: 15px;
    height: 15px; 
    margin-right: 8px;
}

.heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 426px;
    padding-bottom: 0;
}

.login-link {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: rgba(102, 102, 102, 0.8);
    font-weight: 400;
    line-height: 24px;    
    text-align: right;
    text-decoration: underline;   
    margin: 0 0 20px 0; 
    padding-top: 0; 
}

.heading h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 30px;
    color: #0D0D0D;
    font-weight: 700;
    line-height: 36px;
    margin: 0;
}

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); 
    justify-content: left;
    align-items: left;
    overflow: auto;
    
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 80%; 
    max-width: 80%;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left !important;
    align-items: left;
    margin: 15% auto;
    flex-direction: column;
    justify-content: center; 
    align-items: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    margin-top: -10px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

footer {
    text-align: center;
    margin-top: auto; 
    padding: 10px;
}

footer p {
    font-size: 16px;
}

/* Adjust layout for mobile screens */
@media (max-width: 500px) {
    .container {
        width: calc(100% - 40px);
        padding: 20px;
    }

    h1 {
        font-size: 36px;
        line-height: 48px;
    }

    p {
        font-size: 18px;
        line-height: 28px;
    }

    h2 {
        font-size: 24px;
        line-height: 32px;
        width: 100%;
    }

    input, .button, a, .checkbox-container, .heading {
        width: 100%;
    }

    .button {
        font-size: 18px;
        height: 48px;
    }

    input {
        width: calc(100% - 40px);
        height: 44px;
        margin-left: 20px;
        margin-right: 20px;
    }

    a {
        font-size: 14px;
        padding-top: 15px;
    }

    form, .login-form {
        width: 100%;
    }

    .checkbox-container input {
        width: 13px;
        height: 13px;
    }

    .heading h2 {
        font-size: 24px;
    }
}
