* {
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-wrapper {
    position: relative;
    width: 350px;
    height: 450px;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    background-color: var(--blackglass);
}

.login-container,
.register-container {
    padding: 40px;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.6s ease-in-out;
}

.login-container.active {
    transform: translateX(0%);
}

.register-container {
    transform: translateX(100%);
}

.register-container.active {
    transform: translateX(0%);
}

.login-container:not(.active) {
    transform: translateX(-100%);
}

.login-container h2,
.register-container h2 {
    color: var(--btn);
    margin-bottom: 30px;
    font-weight: 500;
}

.input-box {
    position: relative;
    margin-bottom: 20px;
}

.input-box i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    color: var(--btn);
    z-index: 2;
}

.input-box input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: none;
    border-radius: 10px;
    background: var(--bg-light);
    color: var(--btn);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8);
    transition: all 0.2s ease-in-out;
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 35px;
    transform: translateY(-50%);
    color: var(--btn);
    pointer-events: none;
    transition: all 0.2s ease-in-out;
    z-index: 2;
}

.input-box input:focus + label,
.input-box input:not(:placeholder-shown) + label {
    top: -15px;
    transform: translateY(-50%) translatex(-60%) scale(0.85);
    font-size: 0.9em;
    padding: 0 5px;
}

.buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.btn {
    width: 48%;
    padding: 10px;
    border: none;
    color: var(--bg-dark);
}

.btn:hover {
    color: var(--btn);
}

.forgot {
    width: 100%;
    margin-top: 10px;
}

.register-container form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group input {
    padding: 12px 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;

    color: var(--btn);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.register-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    margin-top: 20px;
}

.register-button:hover {
    color: var(--btn);
}

#showLoginBtn {
    width: 100%;
    color: var(--btn);
    margin-top: 15px;
    background-color: #00000000;
}

#showLoginBtn:hover {
    color: var(--bg-light);
}
