.auth {
    align-items: center;
    background-color: var(--color-light-grey);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    width: 100%;
}

.auth-card {
    background-color: var(--color-white);
    display: flex;
    max-width: 618px;
    width: 100%;
}

.auth-card__hero {
    flex: 0 0 258px;
    overflow: hidden;
    position: relative;
}

.auth-card__hero-image {
    height: 100%;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.auth-card__panel {
    background-color: var(--color-white);
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    padding: 38px 35px 32px;
}

.auth-card__header {
    margin-bottom: 55px;
}

.auth-card__header--has-error {
    margin-bottom: 16px;
}

.auth-card__header--review {
    margin-bottom: 24px;
}

.auth-card__header--pin {
    margin-bottom: 48px;
}

.auth-card__header--pin.auth-card__header--has-error {
    margin-bottom: 28px;
}

.auth-card__eyebrow {
    color: var(--color-grey);
    display: none;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 6px;
}

.auth-card__title {
    color: var(--color-dark-grey);
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: -0.2px;
    line-height: 1.15;
    margin-bottom: 12px;
    margin-top: 0;
}

.auth-card__title--center {
    text-align: left;
}

.auth-card__subtitle {
    color: var(--color-grey);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.4;
}

.auth-card__subtitle--center {
    text-align: left;
}

.auth-card__phone-number {
    color: var(--color-dark-grey);
    font-weight: 500;
}

.auth-card__footer {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 14px;
    text-align: center;
}

.auth-card__footer-text {
    color: var(--color-grey);
    font-family: var(--font-sans);
    font-size: 10px;
}

.auth-card__footer-link {
    color: var(--color-grey);
    font-family: var(--font-sans);
    font-size: 10px;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.auth-card__footer-link:hover {
    color: var(--color-dark-grey);
}

.auth-card__footer-link--disabled {
    color: var(--color-grey);
    opacity: 0.6;
    pointer-events: none;
    cursor: default !important;
    text-decoration: none;
    user-select: none;
}

.auth-card__footer-link--disabled:hover {
    color: var(--color-grey);
    cursor: default !important;
    text-decoration: none;
}

.auth-card__footer--login-pin {
    margin-top: 16px;
}

.auth-card__footer--mobile-pin {
    margin-top: 48px;
}

.auth-card__footer-link--plain {
    color: var(--color-dark-grey);
    font-family: var(--font-sans);
    font-size: 11px;
    text-decoration: none;
}

.auth-card__footer-link--plain:hover {
    color: var(--color-dark-grey);
    text-decoration: underline;
}

.auth-form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.auth-form--desktop-pin {
    display: flex;
}

.auth-form__row {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr 1fr;
    width: 100%;
}

.auth-form__field {
    display: flex;
    flex-direction: column;
    margin-bottom: 36px;
    width: 100%;
}

.auth-form__field--review {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    width: 100%;
}

.auth-form__field--email {
    margin-bottom: 20px;
}

.auth-form__field--hidden {
    display: none;
}

.auth-form__field--pin {
    margin-bottom: 28px;
}

.auth-form__field--error .auth-form__phone-input {
    border-bottom-color: var(--color-error);
}

.auth-form__field--error .auth-form__input--line {
    border-bottom-color: var(--color-error);
}

.auth-form__field--error .auth-form__lock-input {
    border-bottom-color: var(--color-error);
}

.auth-form__label {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.auth-form__label--visible {
    clip: auto;
    clip-path: none;
    color: var(--color-dark-grey);
    display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    height: auto;
    margin: 0 0 6px;
    overflow: visible;
    position: static;
    white-space: normal;
    width: auto;
}

.auth-form__required {
    color: var(--color-error);
    margin-left: 1px;
}

.auth-form__phone-input {
    align-items: center;
    border-bottom: 1px solid var(--color-medium-light-grey);
    display: flex;
    padding-bottom: 6px;
    transition: border-color 0.2s ease;
    width: 100%;
}

.auth-form__phone-input:focus-within {
    border-bottom-color: var(--color-dark-grey);
}

.auth-form__lock-input {
    align-items: center;
    border-bottom: 1px solid var(--color-medium-light-grey);
    display: flex;
    gap: 8px;
    padding-bottom: 6px;
    transition: border-color 0.2s ease;
    width: 100%;
}

.auth-form__lock-input:focus-within {
    border-bottom-color: var(--color-dark-grey);
}

.auth-form__lock-icon {
    flex-shrink: 0;
    height: 12px;
    object-fit: contain;
    width: 12px;
}

.auth-form__prefix {
    color: var(--color-dark-grey);
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    margin-right: 12px;
}

.auth-form__input,
.auth-form__phone-input input {
    background: transparent;
    border: none;
    color: var(--color-dark-grey);
    font-family: var(--font-sans);
    font-size: 11px;
    outline: none;
    width: 100%;
}

.auth-form__input--line {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-medium-light-grey);
    border-radius: 0;
    color: var(--color-dark-grey);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    outline: none;
    padding: 0 0 6px;
    transition: border-color 0.2s ease;
    width: 100%;
}

.auth-form__input--line:focus {
    border-bottom-color: var(--color-dark-grey);
}

.auth-form__input::placeholder,
.auth-form__phone-input input::placeholder {
    color: var(--color-muted-grey);
    opacity: 1;
}

.auth-form__otp-inputs {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(6, 1fr);
    margin-bottom: 40px;
    width: 100%;
}

.auth-form__otp-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-medium-light-grey);
    border-radius: 0;
    color: var(--color-dark-grey);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    height: 32px;
    outline: none;
    padding: 0 0 6px;
    text-align: center;
    transition: border-color 0.2s ease;
    width: 100%;
}

.auth-form__otp-input:focus {
    border-bottom-color: var(--color-dark-grey);
}

.auth-form__otp-inputs--error .auth-form__otp-input,
.auth-form__otp-input--error {
    border-bottom-color: var(--color-error);
}

.auth-toggle {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    width: 100%;
}

.auth-toggle__content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-right: 16px;
}

.auth-toggle__title {
    color: var(--color-dark-grey);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
}

.auth-toggle__description {
    color: var(--color-dark-grey);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

.auth-toggle__switch {
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    user-select: none;
}

.auth-toggle__checkbox {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.auth-toggle__track {
    align-items: center;
    background-color: var(--color-medium-light-grey);
    border-radius: 999px;
    display: inline-flex;
    height: 16px;
    padding: 2px 4px;
    position: relative;
    transition: background-color 0.2s ease;
    width: 36px;
}

.auth-toggle__thumb {
    background-color: var(--color-white);
    border-radius: 50%;
    height: 12px;
    left: 2px;
    position: absolute;
    top: 2px;
    transition: transform 0.2s ease;
    width: 12px;
}

.auth-toggle__state {
    font-family: var(--font-sans);
    font-size: 8px;
    font-weight: 400;
    line-height: 1;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.auth-toggle__state--yes {
    color: var(--color-white);
    margin-left: 4px;
    opacity: 0;
}

.auth-toggle__state--no {
    color: var(--color-muted-grey);
    margin-left: auto;
    margin-right: 3px;
    opacity: 1;
}

.auth-toggle__checkbox:checked + .auth-toggle__track {
    background-color: var(--color-dark-grey);
}

.auth-toggle__checkbox:checked + .auth-toggle__track .auth-toggle__thumb {
    transform: translateX(20px);
}

.auth-toggle__checkbox:checked + .auth-toggle__track .auth-toggle__state--yes {
    opacity: 1;
}

.auth-toggle__checkbox:checked + .auth-toggle__track .auth-toggle__state--no {
    opacity: 0;
}

.auth-form__button {
    align-items: center;
    background-color: var(--color-dark-grey);
    border: none;
    border-radius: 0;
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 500;
    height: 32px;
    justify-content: center;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: background-color 0.2s ease;
    width: 100%;
}

.auth-form__button:hover {
    background-color: var(--color-black);
}

.auth-form__button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.auth-form__button--review {
    margin-top: 4px;
}

.auth-form__error {
    color: var(--color-error);
    display: none;
    font-family: var(--font-sans);
    font-size: 11px;
    margin-top: 6px;
}

.auth-form__error--visible {
    display: block;
}

.auth-form__error--otp {
    margin-bottom: 24px;
    margin-top: 0;
}

.auth-form__error--pin {
    margin-top: 10px;
}

.auth-form__error--center {
    text-align: left;
}

.auth-form__errors {
    color: var(--color-error);
    font-family: var(--font-sans);
    font-size: 11px;
    margin-bottom: 14px;
}

.auth-mobile-pin {
    display: none;
}

.auth-pin-dots {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 64px;
    margin-top: 40px;
}

.auth-pin-dots__dot {
    background-color: var(--color-medium-light-grey);
    border-radius: 50%;
    display: inline-block;
    height: 7px;
    transition: background-color 0.15s ease;
    width: 7px;
}

.auth-pin-dots__dot--filled {
    background-color: var(--color-dark-grey);
}

.auth-pin-dots--error .auth-pin-dots__dot {
    background-color: var(--color-error);
}

.auth-pin-dots--shake {
    animation: auth-shake 0.4s ease-in-out;
}

@keyframes auth-shake {
    0%, 100% {
        transform: translateX(0);
    }
    20%, 60% {
        transform: translateX(-6px);
    }
    40%, 80% {
        transform: translateX(6px);
    }
}

.auth-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 260px;
    row-gap: 32px;
    width: 100%;
}

.auth-keypad__key {
    align-items: center;
    background: transparent;
    border: none;
    color: var(--color-dark-grey);
    cursor: pointer;
    display: flex;
    font-family: var(--font-sans);
    font-size: 30px;
    font-weight: 400;
    justify-content: center;
    line-height: 1;
    outline: none;
    padding: 8px 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.auth-keypad__key:active {
    transform: scale(0.92);
}

.auth-keypad__key--delete {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.auth-keypad__delete-icon {
    height: 22px;
    stroke: var(--color-dark-grey);
    width: 22px;
}

.auth-keypad__empty {
    display: block;
}

@media (max-width: 768px) {
    .auth {
        align-items: flex-start;
        padding: 44px 20px 32px;
    }

    .auth-card {
        background-color: transparent;
        height: auto;
        max-width: 330px;
    }

    .auth-card__hero {
        display: none;
    }

    .auth-card__panel {
        background-color: transparent;
        padding: 0;
    }

    .auth-card__header {
        margin-bottom: 80px;
    }

    .auth-card__header--otp {
        margin-bottom: 64px;
    }

    .auth-card__header--review {
        margin-bottom: 24px;
    }

    .auth-card__header--has-error {
        margin-bottom: 24px;
    }

    .auth-card__header--pin {
        margin-bottom: 0;
        text-align: center;
    }

    .auth-card__eyebrow {
        color: var(--color-grey);
        display: block;
        font-size: 11px;
        margin-bottom: 6px;
    }

    .auth-card__title {
        font-size: 26px;
        line-height: 1.15;
        margin-bottom: 14px;
        margin-top: auto;
    }

    .auth-card__title--center {
        text-align: center;
    }

    .auth-card__subtitle {
        color: var(--color-dark-grey);
        font-size: 12px;
    }

    .auth-card__subtitle--center {
        text-align: center;
    }

    .auth-card__phone-number {
        display: block;
        margin-top: 4px;
    }

    .auth-form__row {
        display: flex;
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }

    .auth-form__field {
        margin-bottom: 64px;
    }

    .auth-form__field--review {
        margin-bottom: 20px;
    }

    .auth-form__field--email {
        margin-bottom: 20px;
    }

    .auth-form__field--pin {
        margin-bottom: 28px;
    }

    .auth-form__label--visible {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .auth-form__prefix {
        font-size: 13px;
        margin-right: 14px;
    }

    .auth-form__input,
    .auth-form__phone-input input {
        font-size: 12px;
    }

    .auth-form__input--line {
        font-size: 11px;
        padding-bottom: 6px;
    }

    .auth-form__otp-inputs {
        gap: 9px;
        margin-bottom: 56px;
    }

    .auth-form__otp-input {
        font-size: 14px;
        height: 36px;
    }

    .auth-form__error--otp {
        margin-bottom: 32px;
    }

    .auth-form__error--pin {
        margin-bottom: 0;
        margin-top: 10px;
    }

    .auth-form__error--center {
        text-align: center;
    }

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

    .auth-toggle__title {
        font-size: 11px;
    }

    .auth-toggle__description {
        font-size: 10px;
    }

    .auth-form__button {
        font-size: 11px;
        height: 34px;
        letter-spacing: 1.5px;
    }

    .auth-card__footer {
        gap: 4px;
        margin-top: 18px;
    }

    .auth-card__footer-text,
    .auth-card__footer-link {
        font-size: 10px;
    }

    .auth-card__footer--mobile-pin {
        margin-top: 32px;
    }

    .auth-card__footer-link--plain {
        font-size: 11px;
    }

    .auth-form--desktop-pin {
        display: none;
    }

    .auth-mobile-pin {
        align-items: center;
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .auth-pin-dots {
        gap: 12px;
        margin-bottom: 36px;
        margin-top: 20px;
    }

    .auth-keypad {
        row-gap: 20px;
    }
}
