:root {
    --auth-text: #171717;
    --auth-muted: #667085;
    --auth-placeholder: #98a2b3;
    --auth-error: #d92d20;
}

.pwa-auth-body {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--hyer-page-background);
}

.pwa-auth-content,
.auth-screen {
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-screen {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    background: #ffffff;
}

.auth-card {
    width: 100%;
    padding: calc(92px + env(safe-area-inset-top)) 30px
        calc(40px + env(safe-area-inset-bottom));
}

.auth-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 26px;
}

.auth-logo {
    display: block;
    width: 108px;
    max-width: 100%;
    height: auto;
}

.auth-heading {
    margin-bottom: 30px;
    text-align: center;
}

.auth-heading h1 {
    margin: 0 0 8px;
    color: var(--auth-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
}

.auth-heading p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.6;
}

.auth-form {
    width: 100%;
}

.auth-field {
    margin-bottom: 20px;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-input-wrap:focus-within {
    border-color: var(--hyer-primary);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.08);
}

.auth-input-wrap:has(.is-invalid) {
    border-color: var(--auth-error);
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.08);
}

.auth-input-icon {
    display: inline-flex;
    width: 46px;
    min-width: 46px;
    align-items: center;
    justify-content: center;
    color: #667085;
    font-size: 17px;
}

.auth-control {
    min-width: 0;
    height: 50px;
    min-height: 50px;
    padding: 0 12px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
}

.auth-control:hover,
.auth-control:focus,
.auth-control.is-invalid,
.auth-control.is-invalid:focus {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.auth-control::placeholder {
    color: var(--auth-placeholder);
}

.auth-control:-webkit-autofill,
.auth-control:-webkit-autofill:hover,
.auth-control:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--auth-text);
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

.auth-password-toggle {
    display: inline-flex;
    width: 46px;
    min-width: 46px;
    height: 50px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #667085;
    font-size: 17px;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
    color: var(--hyer-primary);
    outline: none;
}

.auth-options {
    display: flex;
    width: 100%;
    margin-top: -1px;
    margin-bottom: 28px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.auth-remember {
    display: flex;
    min-height: auto;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 8px;
}

.auth-remember .form-check-input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0;
    border: 1px solid #cbd1d9;
}

.auth-remember .form-check-label {
    margin: 0;
    color: #475467;
    font-size: 12px;
    line-height: 17px;
}

.auth-link {
    color: #475467;
    font-size: 12px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-link:hover,
.auth-link:focus {
    color: var(--hyer-primary);
}

.auth-submit {
    width: 100%;
    min-height: 52px;
    border-radius: 10px;
}

.auth-card .alert {
    margin-bottom: 22px;
    border-radius: 9px;
    font-size: 13px;
}

@media (min-width: 421px) {
    .auth-screen {
        align-items: center;
    }

    .auth-card {
        padding: calc(70px + env(safe-area-inset-top)) 34px
            calc(44px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 360px) {
    .auth-card {
        padding-right: 20px;
        padding-left: 20px;
    }
}
