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

.container {
    height: 100%;
}

.wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;

    width: 100%;
    height: 100%;
    padding: 8px;

    border: 1px solid #CBD5E1;
    border-radius: 8px;
}

.hero {
    width: 100%;
    height: 100%;
    padding: 28px;

    background-color: #0F172A;
    border-radius: 6px;
}

.hero h1 {
    margin: 0;
    padding: 0;

    color: #FFF;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.hero h2 {
    margin: 8px 0 0;
    padding: 0;

    color: #94A3B8;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    padding: 28px;
}

.content h1 {
    margin: 0;
    padding: 0;

    color: #0F172A;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

.content p {
    margin: 12px 0 0;
    padding: 0;

    color: #64748B;
    font-size: 16px;
    line-height: 1;
    text-align: center;
}

.content p br {
    display: none;
}

.form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: stretch;
    gap: 8px;

    width: 100%;
    max-width: 380px;
    margin: 28px 0 0;
}

.form label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.form input[type='email'],
.form input[type='password'] {
    width: 100%;
    padding: 12px 16px;

    border: 1px solid #CBD5E1;
    border-radius: 8px;
    outline: none;

    appearance: none;
    -webkit-appearance: none;

    color: #0F172A;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;

    transition: border-color 0.325s;
}

.form input[type='email']:focus,
.form input[type='password']:focus {
    border-color: #0F172A;
}

.form input::placeholder {
    color: #94A3B8;
}

.form .switch {
    padding: 6px 0;

    color: #94A3B8;
    font-size: 14px;
    font-weight: 450;
    line-height: 1;

    transition: color 0.325s;
}

.form .switch:has(input:checked) {
    color: #0F172A;
}

.form .switch span {
    position: relative;

    display: inline-block;
    width: 48px;
    height: 24px;
    padding: 2px;

    border-radius: 14px;
    background-color: #E2E8F0;

    cursor: pointer;
    transition: background-color 0.325s;
}

.form .switch span:has(input:checked) {
    background-color: #0F172A;
}

.form .switch span input {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;

    height: 100%;
    aspect-ratio: 1;

    opacity: 0;

    cursor: pointer;
}

.form .switch span i {
    display: inline-block;
    height: 100%;
    aspect-ratio: 1;

    background-color: #FFFFFF;
    border-radius: 20px;

    transition: transform 0.325s;
}

.form .switch span:has(input:checked) i {
    transform: translateX(24px);
}

.form button {
    width: 100%;
    height: 56px;

    background-color: #0F172A;
    border: 0 none;
    border-radius: 8px;
    outline: none;

    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;

    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;

    transition: background-color 0.325s, color 0.325s;
}

.form button[disabled] {
    cursor: not-allowed;

    background-color: #94A3B8;

    color: #CBD5E1;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;
}

.loader svg {
    width: 100%;
    height: 100%;

    color: #0F172A;

    animation: loader-rotate 2s infinite forwards linear;
}

@keyframes loader-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 800px) {
    .wrapper {
        flex-direction: column;
    }

    .hero {
        height: 35%;
        padding: 20px;
    }

    .hero h1 {
        font-size: 24px;
        font-weight: 650;
    }

    .hero h2 {
        margin: 8px 0 0;

        font-size: 15px;
        font-weight: 450;
    }

    .content {
        padding: 20px;
    }

    .content h1 {
        font-size: 20px;
    }

    .content p {
        margin: 12px 0 0;

        font-size: 14px;
        line-height: 1.325;
    }

    .content p br {
        display: initial;
    }

    .content input[type='email'],
    .content input[type='password'] {
        padding: 10px 14px;

        font-size: 13px;
    }

    .content button {
        height: 48px;

        font-size: 15px;
    }
}