@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;1,400&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
    text-decoration: none;
    text-transform: none;
    font-family: 'Poppins', monospace, sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    background-color: #aaa;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    border: .1rem solid orange;
    background-color: #fff;
    display: flex;
    border-radius: 1.1rem;
    box-shadow: 0 0 3rem .6rem #000;
    min-height: 37vh;
    position: absolute;
}

.right-box {
    background: linear-gradient(45deg, #FF6B6B, #FFE66D);
    ;
    padding: 2rem 5rem;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-box .title {
    font-size: 3rem;
}

.right-box .paragraph {
    font-size: 1.3rem;
}

.left-box {
    padding: 3rem;
}

.left-box .header {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.input-box {
    border: .1rem solid #aaa;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    padding: 1rem;
    border-radius: 1rem;
    position: relative;
}

.input-box input {
    padding-left: 1rem;
    width: 24rem;
}

button {
    color: white;
    background-color: #007bff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    float: right;
    transition: .3s;
    margin-top: 3rem;
}

button:hover {
    background-color: #0069d9;
}

#hide {
    display: none;
}

#show,
#hide {
    cursor: pointer;
}

.error {
    color: red;
    position: absolute;
    font-size: 1rem;
}

.forgot-password {
    color: #444;
    margin-top: 5rem;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: underline;
}

.modal {
    visibility: hidden;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.modal.show {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%;
    border-radius: 8px;
    height: 28rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: scale(.1);
    transition: transform 0.3s ease, height 0.3s ease-in-out;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    position: relative;
}

.first, .second, .third {
    width: 90%;
    height: 100%;
    top: 20px;
    position: absolute;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.first {
    transform: translateX(0);
    opacity: 1;
    z-index: 1;
}

.first.hidden {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 0;
}

.second {
    transform: translateX(100%);
    opacity: 0;
    z-index: 0;
}

.second.active {
    transform: translateX(0);
    opacity: 1;
    z-index: 1;
}

.second.hidden {
    transform: translateX(-100%);
    opacity: 0;
    z-index: 0;
}

.third {
    transform: translateX(200%);
    opacity: 0;
    z-index: 0;
}

.third.active {
    transform: translateX(0);
    opacity: 1;
    z-index: 1;
}

.modal-content.show {
    transform: scale(1);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.modal h2 {
    margin-top: 0;
    font-size: 24px;
    text-align: center;
}

.modal p {
    text-align: center;
    margin-bottom: 20px;
}

.modal .input-box {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: .5rem 2rem;
}

.modal .input-box i {
    margin-right: 10px;
    color: #555;
}

.modal input {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    font-size: 15px;
}

.modal button {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.modal button:hover {
    background-color: #0056b3;
}