@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Overpass:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Josefin Sans , sans-serif;
}
.container{
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f1f1f1;
}
.image{
  height: 100%;     
  overflow: hidden; 
}
.image img{
    height: 100%; 
    width: auto;   
    display: block;
}
.matter{
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items:flex-start;
    margin: auto;
    gap: 5rem;
    padding-left: 5rem;
    background-image: url(./images/bg-pattern-desktop.svg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    width: 50%;
}
.email{
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
}
.email h1{
    font-size: 5rem;
    font-weight: 400;
    color: hsl(0, 6%, 24%);
}
.email h1 span{
    font-weight: 200;
    color: hsl(0, 36%, 70%);
}
p{
    color: hsl(0, 36%, 70%);
    align-self: flex-start;
    padding-right: 300px;
    line-height: 1.5rem;
}

.input {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 400px;
}
.input input {
    width: 400px;
    padding: 12px 20px;
    border: 2px solid #ccc;
    border-radius: 50px;
    outline: none;
    padding-right: 50px; /* Space for the button */
}
.input button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ff6b6b; /* Adjust color */
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.input label {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    display: none;
    margin-right: 80px;
    align-items: center;
    justify-content: center;
}
.error{
    color: red;
    padding-left: 100px;
    display: none;
}
@media (max-width: 765px) {
    .container {
        flex-direction: column;
        height: auto;
        padding: 2rem;
        text-align: center;
        gap: 30px;
    }
    .logo {
        width: 100%;
        display: flex;
        justify-content: flex-start;
    }

    .matter {
        width: 100%;
        padding-left: 0;
        align-items: center;
        gap: 3rem;
        background-image: url(./images/bg-pattern-mobile.svg);
        background-size: cover;
        background-position: top;
    }

    .image {
        width: 100%;
        height: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        
    }

    .image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 10px;
    }

    .email h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .email p {
        padding-right: 0;
        width: 90%;
        text-align: center;
    }

    .input {
        max-width: 100%;
        width: 90%;
    }

    .input input {
        width: 100%;
        padding: 12px 20px;
    }

    .input button {
        padding: 12px 25px;
    }

    .input label {
        margin-right: 60px;
        display: none; /* It only shows on error */
    }

    .error {
        display: none;
        padding-left: 0;
        text-align: center;
    }
}
