* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    display: grid;
    grid-template-areas:
        "left article"
        "left article";
    grid-template-columns: 2fr 3fr;
    grid-template-rows: 1fr 1fr;
    height: 100vh;
}

form {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 20px rgba(121, 246, 208, 0.84);
}


.left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-area: left;
}

article {
    grid-area: article;
    padding: 20px;
    position: relative;
}

.slider{
position:relative;
width:100%;
height:100%;
overflow:hidden;
border-radius:40px;
}

.slide{
width:100%;
height:100%;
object-fit:cover;
display:none;
}

.slide.active{
display:block;
}

.nav{
position:absolute;
top:50%;
transform:translateY(-50%);
background:white;
border:none;
font-size:25px;
padding:10px 15px;
cursor:pointer;
border-radius:10px;
opacity:0.8;
}

.nav:hover{
opacity:1;
}

.prev{
left:20px;
}

.next{
right:20px;
}
header {
    margin-bottom: 150px;
}

header h1 {
    font-size: 30px;
    font-weight: bolder;
    display: flex;
    justify-content: center;
}

header p {
    font-size: 15px;
    font-weight: normal;
}

input {
    margin: 10px;
    padding: 10px;
    width: 300px;
    border-radius: 15px;
    border: 2px solid black;
    font-size: 16px;
    background-color: rgb(255, 252, 252);
    transition: all 0.5s ease-out;
}

input[type="checkbox"] {
    width: auto;
}

input:hover {
    border: 1px solid rgba(121, 246, 208, 0.84);
    transform: scale(1.05);
}

input:focus {
    outline: none;
    border: 2px solid #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-70px);
}

.showpassword {
    display: flex;
    flex-direction: row;
}

.show {
    margin-top: 6px;
}

button {
    padding: 10px;
}

.another {
    margin: 10px;
    width: 100px;
    height: 70px;
    border-radius: 15px;
    background-color: rgb(255, 252, 252);
    transition: all 0.5s ease-out;
}

.another:hover {
    border: 1px solid rgba(121, 246, 208, 0.84);
    transform: skewy(10deg);
}

.sign-up {
    border-radius: 15px;
    width: 300px;
    background-color: rgba(121, 246, 208, 0.84);
    border: none;
    transition: all 0.3s ease;
}

.sign-up:hover {
    background: #4338ca;
    color: white;
    transform: translateY(-2px);
}

.back {
    color: #4f46e5;
    text-decoration: none;
    padding: 10px;
    font-weight: bold;
}

.back:hover {
    text-decoration: underline;
}

.fa-brands {
    font-size: 20px;
}
/* ===== RESPONSIVE FOR MOBILE ===== */

@media (max-width: 768px) {
    .container {
        grid-template-areas:
            "left"
            "article";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        min-height: 100vh;
    }

    article {
        height: 300px;
        padding: 15px;
        order: -1; /* image slider appears on top */
    }

    .slider {
        border-radius: 20px;
    }

    .left {
        padding: 20px 10px;
    }

    header {
        margin-bottom: 30px;
        text-align: center;
    }

    header h1 {
        font-size: 24px;
    }

    header p {
        font-size: 14px;
    }

    form {
        transform: translateY(0);
        padding: 25px 20px;
        width: 100%;
    }

    input {
        width: 260px;
    }

    .sign-up {
        width: 260px;
    }

    .another {
        width: 80px;
        height: 55px;
        margin: 6px;
    }
}

@media (max-width: 480px) {
    article {
        height: 220px;
        padding: 10px;
    }

    header h1 {
        font-size: 20px;
    }

    form {
        padding: 20px 10px;
        box-shadow: 0 10px 15px rgba(121, 246, 208, 0.6);
    }

    input {
        width: 220px;
        font-size: 14px;
    }

    .sign-up {
        width: 220px;
        font-size: 14px;
    }

    .another {
        width: 65px;
        height: 50px;
        margin: 4px;
    }

    .nav {
        font-size: 18px;
        padding: 7px 10px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}

@media (max-width: 360px) {
    input {
        width: 190px;
    }

    .sign-up {
        width: 190px;
    }

    .another {
        width: 55px;
        height: 45px;
        margin: 3px;
    }
}