body {
    overflow: hidden;
    min-height: 100%;
    background-size: cover;
    /* backdrop-filter: brightness(0.4); */
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 92vh;
}

.form-container {
    height: 75%;
    width: 35%;
    box-shadow: 0px 0px 3px white;
    color: white;
    backdrop-filter: blur(6px);
    border-radius: 10px;
    font-family: Calibri, "Trebuchet MS", sans-serif;
    text-shadow: 3px 3px 2px black;
    transition: 0.2s ease-in;
    border: 2px solid white;
    box-shadow: 1px 1px 6px black;
}

.divider {
    width: 23%;
    border: 1px solid white;
    /* border: linear-gradient(90deg, #4da6ff, #65e1ff); */
    position: absolute;
    top: 17%;
}

.container form {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-content: center;
    align-items: center;
}

.form-container .content {
    width: 73%;
    height: 65%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

label > h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}
#myForm > h3 {
    font-size: 1.8rem;
}
.input {
    width: 100%;
    position: static;
    background: none;
    border: 1px solid white;
    color: white;
    border-radius: 4px;
    padding: 10px;
}
.input::placeholder {
    color: white;
}
.input:focus {
    outline: none;
    font-weight: normal;
}
.extra-links{
    text-align: center;
}
.show-password{
    margin: 2% 0;
}
#submitBtn {
    color: white;
    border: 1px solid white;
    font-size: 1.2rem;
    transition: 0.2s ease-in;
    width: 106.5%;
    padding: 10px;
    background: linear-gradient(135deg, #4da6ff, #65e1ff);
    box-shadow: 0 5px 15px rgba(74, 196, 243, 0.2);
    border-radius: 10px;
    border: none;
}

#submitBtn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 196, 243, 0.3);
    background: linear-gradient(135deg, #65e1ff, #4da6ff);
}

#email_error,
#password_error,
#confirmpassword_error {
    color: red;
    font-size: 18px;
    text-shadow: none;
    margin-bottom: 0.2rem;
}
/* otp popup css */
.popup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    z-index: 1050;
    position: fixed;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease-in, visibility 0.3s ease-in;
}

.popup-container.show {
    visibility: visible;
    opacity: 1;
}

.otp-popup {
    top: 28%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    background-color: white;
    border: 1px solid black;
    color: blue;
    position: absolute;
    z-index: 1;
    width: 38vw;
    height: 49vh;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease-in;
}

.titles {
    text-align: center;
}
.otp-title {
    font-size: 2.4rem;
    font-weight: bold;
    color: black;
}
.otp-subtitle {
    font-size: 1.1rem;
    font-weight: normal;
    color: black;
}
.close-btn {
    width: 100%;
    text-align: end;
    font-size: 1.5rem;
    color: red;
}
.close-btn button {
    color: red;
    border: none;
    background: none;
    font-size: 1.5rem;
}
.otp-content {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 38vw;
    height: 49vh;
}
.otp-box {
    display: flex;
    justify-content: space-between;
    width: 80%;
}
.otp-box input {
    width: 15%;
    text-align: center;
    font-size: 3rem;
    border: none;
    border-bottom: 2px solid black;
    color: black;
}
.otp-box input:focus {
    border-bottom: 2px solid black;
    outline: none;
}
#otp-submit {
    width: 40%;
    font-size: 1.1rem;
    height: 5vh;
    color: white;
    border-radius: 10px;
    background-color: #00806ea3;
    transition: 0.1s ease-in;
}
#otp-submit:hover {
    transform: scale(1.08);
}
.otp-resend {
    font-size: 1.1rem;
    color: black;
}
.otp-resend a {
    color: green;
}
.popup-container.show .otp-popup {
    transform: translateY(0);
}

/* media queries for responsivedesgin */
@media only screen and (max-width: 400px) {
    .form-container {
        width: 86%;
        height: 65%;
    }

    .divider {
        width: 33%;
        top: 17%;
    }

    #myForm > h3 {
        font-size: 1.3rem;
    }
    .input{
        padding: 7px;
    }
    label > h3 {
        font-size: 0.9rem;
    }

    .extra-links {
        font-size: 0.8rem;
        text-align: center;
    }

    #submitBtn{
        padding: 5px;
    }
    #email_error,
    #password_error,
    #confirmpassword_error {
        font-size: 11px;
    }
    .otp-popup {
        width: 65vw;
    }
    .otp-content {
        width: 100%;
    }
    .otp-title {
        font-size: 1rem;
    }
    .otp-subtitle {
        font-size: 0.9rem;
    }
    .otp-resend {
        font-size: 0.8rem;
    }
}

@media only screen and (min-width: 400px) and (max-width: 700px) {
    .form-container {
        width: 70%;
        height: 64%;
    }

    #myForm > h3 {
        font-size: 1.5rem;
    }

    label > h3 {
        font-size: 0.9rem;
    }
    
    .divider {
        width: 23%;
        top: 18%;
    }

    .extra-links {
        font-size: 0.8rem;
        text-align: center;
    }

    #email_error,
    #password_error,
    #confirmpassword_error {
        font-size: 14px;
    }
    .otp-popup {
        width: 67vw;
    }
    .otp-content {
        width: 100%;
    }
    .otp-title {
        font-size: 0.9rem;
    }
    .otp-resend {
        font-size: 0.8rem;
    }
}

@media only screen and (min-width: 700px) and (max-width: 1080px) {
    .form-container {
        height: 72%;
        width: 70%;
    }

    .extra-links {
        font-size: 1.03rem;
        text-align: center;
    }
    #email_error,
    #password_error,
    #confirmpassword_error {
        font-size: 15px;
    }

    .extra-links {
        text-align: center;
    }
    .otp-popup {
        width: 53vw;
    }
    .otp-content {
        width: 100%;
    }
    .otp-title {
        font-size: 0.9rem;
    }
    .otp-resend {
        font-size: 0.8rem;
    }
}
