* {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

body, input, button {
    font-size: 1rem;
}

body {
    color: hsl(0, 0%, 100%);
}

input, button {
    border: none;
    outline: none;
}

a {
    text-decoration: none;
}

img {
    min-height: 100vh;
    max-width: 100%;
    height: auto;
}


.login {
    position: relative;
    /* height: 100vh; */
    min-height: 100vh;
    height: 100%;
    display: grid;
    align-items: center;
}

.login-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.container {
    position: relative;
    background-color: hsla(0, 0%, 10%, 0.1);
    border: 2px solid white;
    margin-inline: 1.5rem;
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
}

.login-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.login-content, .login-box {
    display: grid;
}

.login-content {
    row-gap: 1.75rem;
    margin-bottom: 1.5rem;
}

.signup-columns {
    display: flex;
    gap: 2rem;
    justify-content: space-between;
}

.signup-column {
    flex: 1;
    display: grid;
    gap: 1.75rem;
}

.full-name {
    display: flex;
    gap: 16px;
}

.full-name .login-box {
    flex-grow: 1;
}

.login-box {
    grid-template-columns: max-content 1fr;
    align-items: center;
    column-gap: 0.75rem;
    border-bottom: 2px solid hsl(0, 0%, 100%);
}

.login-icon, .login-eye {
    font-size: 1.25rem;
    z-index: 10;
}

.login-input {
    width: 100%;
    padding-block: 0.8rem;
    background: none;
    color: hsl(0, 0%, 100%);
    position: relative;
    z-index: 1;
}

.login-box-input {
    position: relative;
}

.login-label {
    position: absolute;
    left: 0;
    top: 13px;
    font-weight: 500;
    transition: top 0.3s, font-size 0.3s;
    font-size: 13.5px;
}

.login-eye {
    position: absolute;
    right: 0;
    top: 18px;
    z-index: 10;
    cursor: pointer;
}

.login-box:nth-child(2) input {
    padding-right: 1.8rem;
}

.login-check, .login-check-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.login-check {
    margin-bottom: 1.5rem;
}

.login-check-label, .login-forgot, .login-register {
    font-size: 0.813rem;
}

.login-check-group {
    display: inline-block;
}

.login-check-input {
    display: none;
}

.login-check-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-icon {
    position: relative;
    width: 2em;
    aspect-ratio: 1/1;
    border: 2px solid #ccc;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    transition: border-color 0.3s ease, border-radius 0.3s ease;
}

.checkmark {
    position: absolute;
    top: 0.1em;
    left: 0.1em;
    width: 1.6em;
    aspect-ratio: 1/1;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    transition: stroke-dashoffset 0.5s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.checkbox-text {
    margin-left: 0.5em;
    transition: text-decoration 0.3s ease;
}

.login-check-input:checked + .login-check-label .checkbox-icon {
    border-color: #4c35fa;
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    background-color: #4c35fa;
}

.login-check-input:checked + .login-check-label .checkmark {
    stroke-dashoffset: 0;
}

.login-check-input:checked + .login-check-label .checkbox-text {
    /* color: #6c5ce7; */
    text-decoration: underline;
}

.login-forgot {
    color: #fff;
}

.login-forgot:hover {
    text-decoration: underline;
}

/* .login-button {
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    background-color: #fff;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 2rem;
} */

.login-button {
    background: #4c35fa;
    color: white;
    font-family: inherit;
    padding: 0.35em;
    padding-left: 1.2em;
    font-size: 17px;
    font-weight: 500;
    border-radius: 0.9em;
    border: none;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    box-shadow: inset 0 0 1.6em -0.6em #4c35fa;
    overflow: hidden;
    position: relative;
    height: 2.8em;
    width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    padding-right: 3.3em;
    cursor: pointer;
}

.login-button .icon {
    background: white;
    margin-left: 1em;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 2.2em;
    width: 2.2em;
    border-radius: 0.7em;
    box-shadow: 0.1em 0.1em 0.6em 0.2em #4c35fa;
    right: 0.3em;
    transition: all 0.3s;
}

.login-button:hover .icon {
    width: calc(100% - 0.6em);
}

.login-button .icon svg {
    width: 1.1em;
    transition: transform 0.3s;
    color: #4c35fa;
}

.login-button:hover .icon svg {
    transform: translateX(0.1em);
}

.login-button:active .icon {
    transform: scale(0.95);
}

.login-register {
    text-align: center;
}

.login-register a {
    color: #fff;
    font-weight: 500;
}

.login-register a:hover {
    text-decoration: underline;
}


.login-input:focus + .login-label {
    top: -12px;
    font-size: 0.813rem;
}

.login-input:not(:placeholder-shown).login-input:not(:focus) + .login-label {
    top: -12px;
    font-size: 0.813rem;
}


@media screen and (min-width: 576px) {
    .login {
        justify-content: center;
    }

    .container {
        /* width: 400px; */
        padding: 3rem 3rem 3.5rem;
        border-radius: 1.5rem;
    }

    #login-form {
        width: 400px;
    }

    .login-title {
        font-size: 2rem;
    }

    .signup-column {
        width: 300px;
    }
}

@media only screen and (max-width: 575px) {
    .container {
        width: 100vw;
        margin: 0;
        border: none;
        border-radius: 0;
    }

    .signup-columns {
        flex-direction: column;
    }
}