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

main {
    display: grid;
    grid-template-areas:
        "main1 main2 main2"
    ;
    grid-template-columns: 1fr 1.5fr;
    grid-template-rows: 100vh 100vh;
    height: 100vh;
}

.main {
    grid-area: main1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(-100px);
}

.submain {
    grid-area: main2;
    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 {
    transform: translateY(-30px);
}

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

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

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.email,
.password {
    width: 300px;
    height: 30px;
    margin-top: 10px;
    border-radius: 5px;
}

.email {
    padding: 10px;
    transition: transform 0.5s ease-out;
}

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

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

.hint {
    font-size: 13px;
    color: #6b7280;
}

.password {
    background: rgba(121, 246, 208, 0.84);
    color: black;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

label {
    font-size: 20px;
}

.back {
    text-align: center;
}

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

.back a:hover {
    text-decoration: underline;
}
/* ===== RESPONSIVE FOR MOBILE ===== */

@media (max-width: 768px) {
    main {
        grid-template-areas:
            "main2"
            "main1";
        grid-template-columns: 1fr;
        grid-template-rows: 280px auto;
        height: auto;
        min-height: 100vh;
    }

    .submain {
        height: 280px;
        padding: 15px;
    }

    .slider {
        border-radius: 20px;
    }

    .main {
        transform: translateY(0);
        padding: 40px 20px;
        justify-content: flex-start;
        padding-top: 50px;
    }

    header {
        transform: translateY(0);
        text-align: center;
        margin-bottom: 10px;
    }

    header h1 {
        font-size: 24px;
    }

    header p {
        font-size: 14px;
    }

    .email,
    .password {
        width: 260px;
    }

    label {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    main {
        grid-template-rows: 220px auto;
    }

    .submain {
        height: 220px;
        padding: 10px;
    }

    header h1 {
        font-size: 20px;
    }

    header p {
        font-size: 13px;
    }

    .email,
    .password {
        width: 220px;
    }

    label {
        font-size: 15px;
    }

    .hint {
        font-size: 12px;
    }

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

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}

@media (max-width: 360px) {
    .email,
    .password {
        width: 190px;
    }
}