@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html, body {
    display: grid;
    height: 100%;
    width: 100%;
    place-items: center;
    background: -webkit-linear-gradient(left, #0d47a1, #0d47a1);
    background: linear-gradient(100deg, #0d47a1, #313131);
}

::selection {
    background: #fa4299;
    color: white;
}

.wrapper {
    overflow: hidden;
    max-width: 390px;
    background: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.1);
}

.wrapper .title-text {
    display: flex;
    width: 200%;
    transition: margin-left 0.6s cubic-bezier(0.68, -0.55, 0.65, 1.55);
}

.wrapper .title {
    width: 50%;
    font-size: 35px;
    font-weight: 600;
    text-align: center;
    color: #333;
}

.wrapper .form-container {
    width: 100%;
    overflow: hidden;
}

.slide-controller {
    position: relative;
    display: flex;
    height: 50px;
    width: 100%;
    margin: 30px 0 10px 0;
    justify-content: space-between;
    border: 1px solid lightgrey;
    border-radius: 5px;
    overflow: hidden;
}

.slide-controller .slide {
    width: 50%;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    z-index: 1;
    transition: all 0.6s ease;
}

.slide-controller .slider-tab {
    position: absolute;
    height: 100%;
    width: 50%;
    left: 0;
    border-radius: 5px;
    background: -webkit-linear-gradient(left, #0d47a1, #808080);
    background: linear-gradient(90deg, #0d47a1, #808080);
    z-index: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

input[type="radio"] {
    display: none;
}

#signup:checked ~ .slider-tab {
    left: 50%;
}

#signup:checked ~ label.signup {
    color: white;
    cursor: default;
    user-select: none;
}

#signup:checked ~ label.login {
    color: black;
}

#login:checked ~ label.signup {
    color: black;
}

#login:checked ~ label.login {
    color: white;
    cursor: default;
    user-select: none;
}

.form-inner {
    display: flex;
    width: 200%;
    transition: margin-left 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.form-inner form {
    width: 50%;
    transition: all 0.3s ease;
}

.form-inner form .field {
    height: 50px;
    width: 100%;
    margin-top: 20px;
}

.form-inner form .field input {
    height: 100%;
    width: 100%;
    padding-left: 15px;
    font-size: 17px;
    border-radius: 5px;
    border: 1px solid lightgrey;
    border-bottom-width: 2px;
    outline: none;
    transition: all 0.3s ease;
}

.form-inner form .field input:focus {
    border-color: #fc83bb;
}

.form-inner form .field input::placeholder {
    color: #b3b3b3;
    transition: all 0.3s ease;
}

.form-inner form .pass-link,
.form-inner form .signup-link {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
}

.form-inner form a {
    color: #fa4299;
    text-decoration: none;
}

.form-inner form a:hover {
    text-decoration: underline;
}

form .btn {
    height: 50px;
    width: 100%;
    margin-top: 20px;
    border-radius: 5px;
    background: -webkit-linear-gradient(right, #0d47a1, #808080, #0d47a1, #808080);
    background: linear-gradient(270deg, #0d47a1, #808080, #0d47a1, #808080);
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

form .btn input[type="submit"] {
    height: 100%;
    width: 100%;
    border: none;
    background: none;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    z-index: 2;
}
