.lex-auth-shell {
    box-sizing: border-box;
    color: #172033;
    font-family: inherit;
    margin: 0 auto;
    max-width: 460px;
    width: 100%;
}

.lex-auth-form {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(16, 24, 40, .08);
    box-sizing: border-box;
    display: grid;
    gap: 14px;
    padding: 24px;
}

.lex-auth-login-card {
    background: #ffffff;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(16, 24, 40, .08);
    box-sizing: border-box;
    display: grid;
    gap: 12px;
    padding: 24px;
}

.lex-auth-login-card .lex-auth-form {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.lex-auth-heading h2 {
    color: #101828;
    font-size: 24px;
    line-height: 1.2;
    margin: 0 0 6px;
}

.lex-auth-heading p {
    color: #637083;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.lex-auth-field {
    display: grid;
    gap: 6px;
}

.lex-auth-field span,
.lex-auth-check span {
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.lex-auth-field input {
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    box-sizing: border-box;
    color: #111827;
    font-size: 15px;
    min-height: 44px;
    outline: none;
    padding: 10px 12px;
    width: 100%;
}

.lex-auth-password-wrap {
    display: block;
    position: relative;
}

.lex-auth-password-wrap input {
    padding-right: 48px;
}

.lex-auth-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #637083;
    cursor: pointer;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 4px;
    top: 4px;
    width: 40px;
}

.lex-auth-password-toggle:hover,
.lex-auth-password-toggle:focus {
    color: #1f6feb;
    outline: none;
}

.lex-auth-password-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(31, 111, 235, .14);
}

.lex-auth-eye {
    fill: currentColor;
    height: 20px;
    width: 20px;
}

.lex-auth-eye-closed,
.lex-auth-password-toggle.is-visible .lex-auth-eye-open {
    display: none;
}

.lex-auth-password-toggle.is-visible .lex-auth-eye-closed {
    display: block;
}

.lex-auth-field input:focus {
    border-color: #1f6feb;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, .14);
}

.lex-auth-password-strength {
    color: #637083;
    font-size: 12px;
    font-weight: 700;
    min-height: 18px;
}

.lex-auth-password-strength[data-strength="0"],
.lex-auth-password-strength[data-strength="1"],
.lex-auth-password-strength[data-strength="5"] {
    color: #a8071a;
}

.lex-auth-password-strength[data-strength="2"] {
    color: #9a6700;
}

.lex-auth-password-strength[data-strength="3"],
.lex-auth-password-strength[data-strength="4"] {
    color: #087443;
}

.lex-auth-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
}

.lex-auth-check {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.lex-auth-check input {
    accent-color: #1f6feb;
    height: 16px;
    width: 16px;
}

.lex-auth-button {
    align-items: center;
    background: #1f6feb;
    border: 1px solid #1f6feb;
    border-radius: 10px;
    box-sizing: border-box;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    padding: 10px 15px;
    position: relative;
    text-decoration: none;
    width: 100%;
}

.lex-auth-button:hover,
.lex-auth-button:focus {
    background: #1455a3;
    border-color: #1455a3;
    color: #ffffff;
}

.lex-auth-button-secondary {
    background: #ffffff;
    border-color: #d0d5dd;
    color: #172033;
}

.lex-auth-button-secondary:hover,
.lex-auth-button-secondary:focus {
    background: #f9fafb;
    border-color: #98a2b3;
    color: #172033;
}

.lex-auth-button.is-loading,
.lex-auth-button:disabled {
    cursor: wait;
    opacity: .86;
}

.lex-auth-button.is-loading::before {
    animation: lex-auth-spin .75s linear infinite;
    border: 2px solid rgba(255, 255, 255, .48);
    border-radius: 999px;
    border-top-color: #ffffff;
    content: "";
    height: 16px;
    width: 16px;
}

@keyframes lex-auth-spin {
    to {
        transform: rotate(360deg);
    }
}

.lex-auth-success-card {
    align-items: center;
    text-align: center;
}

.lex-auth-success-icon {
    align-items: center;
    background: #e7f7ef;
    border: 1px solid rgba(8, 116, 67, .18);
    border-radius: 999px;
    display: inline-flex;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.lex-auth-success-icon::before {
    border-bottom: 4px solid #087443;
    border-right: 4px solid #087443;
    content: "";
    height: 22px;
    margin-top: -4px;
    transform: rotate(45deg);
    width: 12px;
}

.lex-auth-link {
    color: #1f6feb;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.lex-auth-link:hover,
.lex-auth-link:focus {
    color: #1455a3;
    text-decoration: underline;
}

.lex-auth-resend-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    justify-self: center;
    line-height: 1.4;
    padding: 0;
    text-align: center;
}

.lex-auth-resend-toggle:focus-visible {
    border-radius: 6px;
    box-shadow: 0 0 0 3px rgba(31, 111, 235, .14);
    outline: none;
}

.lex-auth-switch {
    color: #637083;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    text-align: center;
}

.lex-auth-alert,
.lex-auth-notice {
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    padding: 12px 14px;
}

.lex-auth-alert {
    background: #fff1f0;
    border: 1px solid #ffccc7;
    color: #a8071a;
}

.lex-auth-alert p {
    margin: 0;
}

.lex-auth-alert p + p {
    margin-top: 6px;
}

.lex-auth-notice {
    background: #eef6ff;
    border: 1px solid #bad7ff;
    color: #164c87;
}

.lex-auth-logout {
    max-width: 240px;
}

.lex-auth-login-card .lex-auth-resend-form {
    border-top: 1px solid #e4e7ec;
    gap: 12px;
    margin-top: 2px;
    padding-top: 16px;
}

.lex-auth-resend-form[hidden] {
    display: none;
}

@media (max-width: 560px) {
    .lex-auth-form,
    .lex-auth-login-card {
        border-radius: 14px;
        padding: 18px;
    }

    .lex-auth-login-card .lex-auth-form {
        padding: 0;
    }

    .lex-auth-heading h2 {
        font-size: 22px;
    }

    .lex-auth-row {
        align-items: flex-start;
        display: grid;
    }
}
