.register-div {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: 28px 0 20px 0;
}

.login-div {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: 100px 0 70px 0;
}

.register-div h2, .login-div h2 {
    font-size: clamp(36px, 4vw, 5rem);;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 500px;
    height: auto;
    border-radius: 15px;
}

.register-form, .login-form {
    display: flex;
    flex-direction: column;
    width: 50%;
    align-items: center;
}

.login-form input {
    margin-bottom: 20px;
}

.register-form a, .login-form a {
    color: white;
    text-align: center;
    margin-top: 10px;
}

.register-form label, .login-form label {
    color: white;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 400;
    margin: 10px 0;
}

.register-form input , .login-form input {
    height: 50px;
    padding: 0 15px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 20px;
    transition: ease-in 0.2s all;
    width: 100%;
}

.register-form input:focus , .login-form input:focus {
    transform: scale(1.05);
    transition: ease-in 0.2s all;
}

.register-form button, .login-form button {
    color: white;
    background-color: #13212E;
    width: 200px;
    height: 50px;
    border-radius: 20px;
    border: none;
    align-self: center;
    margin-top: 30px;
    font-size: 1.3rem;
    font-weight: 700;
    transition: ease-in 0.2s all;
}

.register-form button:hover, .login-form button:hover {
    cursor: pointer;
    transform: scale(1.1);
    transition: ease-in 0.2s all;
}

.remember-me {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

#remember-me-checkbox {
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
}

.register-form .form-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    width: 100%;
    flex-wrap: nowrap; /* prevent wrapping on desktop */
}

.register-form .form-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #13212E;
    flex-shrink: 0;
}

.register-form .form-group label {
    display: flex;
    align-items: center; /* vertically center text and links */
    flex-wrap: wrap; /* allow links to wrap on very small screens */
    color: white;
    font-size: 1.2rem;
    font-weight: 400;
    gap: 5px;
    line-height: 1.3;
}

.register-form .form-group label a {
    color: #00AEEF;
    text-decoration: underline;
    transition: 0.2s ease-in-out;
    display: flex;
    align-items: center;
    margin-top: 0;
}

.register-form .form-group label a:hover {
    color: #66d9ff;
}

@media (max-width: 1230px) {
    .login-div, .register-div {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .login-form, .register-form {
        width: 95%;
        display: flex;
    }

    .login-form input, .register-form input {
        max-width: 450px;
    }

    .register-form .form-group {
        flex-direction: row; /* keep checkbox + label inline */
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap; /* allow label to wrap naturally */
    }

    .register-form .form-group label {
        justify-content: flex-start;
        font-size: 1rem;
        line-height: 1.4;
    }

    .register-form .form-group input[type="checkbox"] {
        margin-top: 4px; /* aligns checkbox with first line of text */
    }
}