body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.container {
    padding: 7px;
    background: #e9e9e9;
    width: 60%;
    height: 70%;
    border-radius: 20px;
    display: flex;
    position: relative;
    justify-content: space-between;
    overflow: hidden;
}

.cont_background {
    position: absolute;
    transition: transform 0.6s ease-in-out;
    display: flex;
    align-content: center;
    align-items: center;
    height: 100%;
}
.cont_background img{
    max-width: 58%;
    height: auto;
}

.container.register-mode .cont_background {
    transform: translateX(40%);
}

.register, .login {
    background: #fff;
    width: 30%;
    padding: 40px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    transition: all 0.6s ease-in-out;
}

.register {
    opacity: 0;
    transform: translateX(100%);
    z-index: 1;
}
form {
    width: 100%;
}

.login {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.container.register-mode .register {
    opacity: 1;
    transform: translateX(0);
}

.container.register-mode .login {
    opacity: 0;
    transform: translateX(-100%);
    visibility: hidden;
}

.header {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 100%;
    margin-bottom: 16px;
}

.illustration {
    width: 300px;
    height: 300px;
    position: relative;
    transition: transform 0.6s ease-in-out;
}

.shape {
    position: absolute;
}

.orange {
    width: 100px;
    height: 50px;
    background: #FF7043;
    border-radius: 100px 100px 0 0;
    bottom: 0;
    left: 50px;
}

.purple {
    width: 60px;
    height: 120px;
    background: #5C6BC0;
    left: 100px;
    bottom: 50px;
}

.black {
    width: 40px;
    height: 100px;
    background: #212121;
    left: 170px;
    bottom: 50px;
}

.yellow {
    width: 30px;
    height: 80px;
    background: #FDD835;
    left: 220px;
    bottom: 50px;
}

h1 {
    margin: 2px;
}

.form-group {
    margin-bottom: 20px;
    width: 100%;
}

.input-box {
    display: flex;
    margin-top: 10px;
}

input {
    padding: 12px 15px;
    width: 100%;
    border: none;
    border-bottom: solid #212121;
    outline: none;
}

input.err {
    border-bottom: solid red;
    color: red;
}

.btns {
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.login-btn, .register-btn {
    width: 100%;
    padding: 12px;
    background: #212121;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.google-btn {
    width: 100%;
    padding: 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    width: 100%;
}

.remember label {
    display: flex;
    text-wrap: nowrap;
    gap: 5px;
}

.remember input {
    margin: 0;
}

.switch-mode {
    margin-top: 10px;
    cursor: pointer;
    color: #5C6BC0;
    text-decoration: underline;
}