@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;600;700&family=Ropa+Sans&display=swap');

body {
    margin: 0;
    font-family: 'Ropa Sans', sans-serif;
    font-size: 18px;
    position: relative;
}

.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/img/med/pic1.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    overflow-y:scroll;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsla(189, 70%, 34%, 0.4);
    z-index: 0;
}

.container {
    background-color: hsla(0, 0%, 75%, 0.7); 
    width: 450px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 10px;
    height: 500px;
    position: relative;
    z-index: 1;
}

.signin-content {
    display: flex;
}

.form-content {
    flex: 1;
    padding-right: 20px;
}

.image-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-content img {
    width: 500px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    height: 540px;
    margin-right: -20px;
    margin-top: -23px;
}

.nav {
    margin-bottom: 20px;
    margin-left: 20px;
}

.nav a {
    text-decoration: none;
    color: black;
    margin-right: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.3s;
}

.nav a:hover,
.nav a.active {
    border-bottom-color: #007bff;
}

.forms {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 20px;
    margin-top: 20px;
}

.form-group {
    width: 100%;
}

label {
    display: block;
}

input[type="email"],
input[type="password"] {
    width: 400px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid transparent;
    outline: none;
}

button[type="submit"] {
    width: 420px;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: hsla(348, 83%, 47%, 1);
    color: white;
    cursor: pointer;
    margin-left: 20px;
    margin-top: 30px;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

p {
    text-align: center;
    margin-top: 20px;
}

.form-content h1{
    text-align: center;
    margin-top: 20px;
    font-size: 15px;
}

.nav a.active {
    border-bottom-color: hsla(348, 83%, 47%, 1);
}

.external-signin{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 100px;
    margin-top: 20px;
}

.external-signin img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.container h2{
    text-align: center;
    margin-top: 20px;
    font-size: 20px;
    color: hsla(348, 83%, 47%, 1);
}

.container h1{
    text-align: center;
    margin-top: 20px;
    font-size: 18px;
    color: hsla(348, 83%, 47%, 1);
}

/* fancy animations */
.nav a.active {
    border-bottom-color: hsla(348, 83%, 47%, 1);
    transition: border-bottom-color 0.3s ease, transform 0.5s ease;
}

.nav a {
    text-decoration: none;
    color: black;
    margin-right: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.nav a.rotate {
    transform: rotate(360deg);
}

/* mobile design */
@media (max-width: 768px) {
    body{
        width: 375px;
        overflow-x: hidden;
    }
    .container {
        width: 320px;
        margin: 0;
        border-radius: 15px;
        height: 500px;
        margin-left: 10px;
    }
    .signin-content {
        flex-direction: column;
    }
    .image-content img {
        width: 100%;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        height: 300px;
        margin-right: 0;
        margin-top: 0;
    }
    .forms {
        margin-left: 0;
        width: 350px;
    }
    .form-content {
        padding-right: 0;
    }
    .form-group {
        width: 100%;
    }
    label {
        display: block;
    }
    
    input[type="email"],
    input[type="password"] {
        width: 300px;
        padding: 10px;
        border-radius: 5px;
        border: 1px solid transparent;
        outline: none;
    }
    
    button[type="submit"] {
        width: 300px;
        padding: 10px;
        border-radius: 5px;
        border: none;
        background-color: hsla(348, 83%, 47%, 1);
        color: white;
        cursor: pointer;
        margin-left: 20px;
        margin-top: 30px;
    }
    
    button[type="submit"]:hover {
        background-color: #0056b3;
    }
    .nav {
        margin-left: 0;
    }
    .external-signin{
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 100px;
        margin-top: 20px;
    }
    .external-signin img{
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
    }
    .container h2{
        text-align: center;
        margin-top: 20px;
        font-size: 20px;
        color: hsla(348, 83%, 47%, 1);
    }
    .container h1{
        text-align: center;
        margin-top: 20px;
        font-size: 18px;
        color: hsla(348, 83%, 47%, 1);
    }
    .nav a.active {
        border-bottom-color: hsla(348, 83%, 47%, 1);
    }
    .external-signin img{
        width: 40px;
        height: 40px;
        border-radius: 50%;
        cursor: pointer;
    }
    .container h2{
        text-align: center;
        margin-top: 20px;
        font-size: 20px;
        color: hsla(348, 83%, 47%, 1);
    }
    .container h1{
        text-align: center;
        margin-top: 20px;
        font-size: 18px;
        color: hsla(348, 83%, 47%, 1);
    }
    .nav a.active {
        border-bottom-color: hsla(348, 83%, 47%, 1);
    }
    .nav a.active {
        border-bottom-color: hsla(348, 83%, 47%, 1);
        transition: border-bottom-color 0.3s ease, transform 0.5s ease;
    }
    .nav a {
        text-decoration: none;
        color: black;
        margin-right: 20px;
        padding-bottom: 5px;
        border-bottom: 2px solid transparent;
        transition: border-bottom-color 0.3s ease;
    }
    .nav a.rotate {
        transform: rotate(360deg);
    }
}
