* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 30px;
}

.container {
    position: relative;
    max-width: 850px;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    perspective: 2700px;
    border-radius: 6px;
}

.cover {
    position: absolute;
    top: 0;
    left: 50%;
    height: 100%;
    width: 50%;
    z-index: 98;
    transition: transform 1s ease;
    transform-origin: left;
    transform-style: preserve-3d;
}

#flip:checked ~ .cover {
    transform: rotateY(-180deg);
}

.cover .front,
.cover .back {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.back {
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

.cover::before,
.cover::after {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    opacity: 0.5;
    z-index: 12;
}

.cover::after {
    opacity: 0.3;
    transform: rotateY(180deg);
    backface-visibility: hidden;
}

.cover img {
    position: absolute;
    height: 81%;
    width: 94%;
    object-fit: cover;
    z-index: 10;
    border-radius: 6px;
}

.cover .text {
    position: absolute;
    z-index: 130;
    height: 90%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.text-1,
.text-2 {
    font-family: "Latin Modern Roman";
    font-style: italic;
    color: #fff;
    text-align: center;
}

.text-1 {
    font-size: 35px;
    font-weight: 600;
}

.text-2 {
    font-size: 30px;
    font-weight: 600;
}

.forms {
    height: 100%;
    width: 100%;
    background: #fff;
}

.form-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login-form,
.signup-form {
    width: calc(50% - 25px);
}

.title {
    position: relative;
    font-size: 24px;
    font-weight: 600;
    color: #000;
    text-align: center;
}

.title:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 25px;
}

.signup-form .title:before {
    width: 20px;
}

.input-boxes {
    margin-top: 30px;
}

.input-box {
    display: flex;
    align-items: center;
    height: 50px;
    width: 100%;
    margin: 10px 0;
    position: relative;
}

.input-box input {
    height: 100%;
    width: 100%;
    outline: none;
    border: none;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 2px solid rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease;
}

.input-box input:focus,
.input-box input:valid {
    border-color: #ff6b00;
}

.input-box i {
    position: absolute;
    color: #ff6b00;
    font-size: 17px;
}

.text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.text a {
    text-decoration: none;
    color: #000;
}

.text a:hover {
    text-decoration: underline;
}

.button {
    color: #145723;
    margin-top: 40px;
    width: 50%;
    position: relative;
}

.button input {
    color: #fff;
    background: #ff6b00;
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    transition: background 0.4s ease;
    font-weight: 800;
    position: absolute;
    left: 100px;
}

.button input:hover {
    background: #ff9868;
}

label {
    color: #5b13b9;
    cursor: pointer;
}

label:hover {
    text-decoration: underline;
}

.login-text,
.sign-up-text {
    text-align: center;
    margin-top: 25px;
}

#flip {
    display: none;
}

@media (max-width: 730px) {
    .cover {
        display: none;
    }
    .login-form,
    .signup-form {
        width: 100%;
    }
    .signup-form {
        display: none;
    }
    #flip:checked ~ .forms .signup-form {
        display: block;
    }
    #flip:checked ~ .forms .login-form {
        display: none;
    }
}
