/* 1K authentication confirmation UI. Scoped to the existing auth modal and toast. */

.onek-auth-confirmation__modal-title {
    margin: 0 0 31px;
    color: #fff;
    font: 500 32px/1.1 Gilroy, sans-serif;
    text-align: center;
    text-transform: uppercase;
}

.onek-auth-engine--login .onek-auth-form__secondary-actions {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 9px;
    margin-top: -2px;
}

body .onek-auth-engine--login .onek-auth-form__secondary-actions .onek-auth-form__forgot,
.onek-auth-engine--login .onek-auth-confirmation__resend {
    width: max-content;
    max-width: 100%;
    margin: 0;
    color: #6799d2;
    font: 500 14px/1.3 Gilroy, sans-serif;
    text-align: right;
    text-decoration: none;
}

.onek-auth-engine--login .onek-auth-confirmation__resend {
    display: none;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    border: 0;
    outline-offset: 3px;
    background: transparent;
    cursor: pointer;
}

.onek-auth-engine--login .onek-auth-confirmation__resend.is-visible {
    display: inline-flex;
}

.onek-auth-modal input:-webkit-autofill,
.onek-auth-modal input:-webkit-autofill:hover,
.onek-auth-modal input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #2c2d31 inset !important;
    -webkit-text-fill-color: #f5f6f8 !important;
    caret-color: #f5f6f8;
}

.onek-auth-engine--login .onek-auth-confirmation__resend:hover,
.onek-auth-engine--login .onek-auth-confirmation__resend:focus-visible {
    color: #8db5e1;
}

.onek-auth-engine--login .onek-auth-confirmation__resend:focus-visible {
    outline: 2px solid #8db5e1;
}

.onek-auth-engine--login .onek-auth-confirmation__resend.is-busy,
.onek-auth-engine--login .onek-auth-confirmation__resend:disabled {
    color: #6799d2;
    cursor: wait;
    opacity: .62;
}

.onek-auth-engine--login .onek-auth-confirmation__resend.is-busy::after {
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 1px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    content: "";
    animation: onek-auth-resend-spin .7s linear infinite;
}

@keyframes onek-auth-resend-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 721px) {
    .onek-auth-modal__brand,
    .onek-auth-modal__tabs {
        display: none !important;
    }

    body .onek-auth-modal {
        padding: 16px;
    }

    body .onek-auth-modal__panel {
        width: min(845px, calc(100vw - 32px));
        padding: 73px 0 50px;
        border: 0;
        border-radius: 0;
        background: #0f0f0f;
        box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
    }

    body .onek-auth-modal[data-onek-auth-modal="register"] .onek-auth-modal__panel {
        height: min(820px, calc(100vh - 32px));
        height: min(820px, calc(100dvh - 32px));
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
    }

    body .onek-auth-modal__close {
        top: 24px;
        right: 24px;
        width: 32px;
        height: 32px;
    }

    body .onek-auth-modal__close::before,
    body .onek-auth-modal__close::after {
        top: 15px;
        left: 0;
        width: 32px;
        height: 1px;
    }

    body .onek-auth-modal .onek-auth-engine,
    body .onek-auth-modal__alternate,
    body .onek-auth-confirmation__modal-title {
        width: min(381px, calc(100% - 32px));
        margin-right: auto;
        margin-left: auto;
    }

    body .onek-auth-modal .form_field_line,
    body .onek-auth-modal .form_field {
        margin: 0 0 33px;
    }

    body .onek-auth-modal .form_field_line:last-child,
    body .onek-auth-modal .form_field:last-child {
        margin-bottom: 0;
    }

    body .onek-auth-modal .form_field_label,
    body .onek-auth-modal .form_field_label_ins,
    body .onek-auth-modal .form_field_label label {
        margin-bottom: 13px;
        font-size: 13px;
        line-height: 16px;
    }

    body .onek-auth-modal input[type="text"],
    body .onek-auth-modal input[type="email"],
    body .onek-auth-modal input[type="password"] {
        width: 381px;
        max-width: 100%;
        height: 50px;
        background: #2c2d31;
    }

    body .onek-auth-form__agreement {
        margin-top: 59px;
    }

    body .onek-auth-engine--register .onek-auth-form__submit {
        margin-top: 24px;
    }

    body .onek-auth-modal .onek-auth-form__submit input[type="submit"] {
        width: 220px;
        height: 50px;
        margin: 0 auto;
        border-radius: 25px;
        background: #325da3;
        line-height: 50px;
    }

    body .onek-auth-modal .onek-auth-form__submit input[type="submit"]:hover,
    body .onek-auth-modal .onek-auth-form__submit input[type="submit"]:focus-visible {
        background: #325da3;
    }

    body .onek-auth-modal__alternate {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin-top: 37px;
    }

    body .onek-auth-modal__alternate p {
        margin: 0;
        font-size: 16px;
        font-weight: 500;
    }

    body .onek-auth-modal__alternate > button {
        width: auto;
        height: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        color: #5d87b9;
        font: 500 16px/1.2 Gilroy, sans-serif;
        text-transform: none;
    }
}

@media (max-width: 720px) {
    .onek-auth-modal__brand {
        display: flex !important;
    }

    .onek-auth-modal__tabs {
        display: grid !important;
    }

    .onek-auth-confirmation__modal-title {
        display: none !important;
    }

    .onek-auth-engine--login .onek-auth-confirmation__resend {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .onek-auth-engine--login .onek-auth-confirmation__resend.is-busy::after {
        animation-duration: 1.4s;
    }
}

.onek-auth-toast-container {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2147483641;
    display: flex;
    width: 250px;
    min-height: 64px;
    flex-direction: column;
    gap: 8px;
    margin: 100px;
    pointer-events: none;
}

@media (max-width: 1280px) {
    .onek-auth-toast-container {
        margin: 50px;
    }
}

.onek-auth-toast {
    position: relative;
    width: 250px;
    min-height: 64px;
    box-sizing: border-box;
    padding: 1px;
    overflow: hidden;
    border-radius: 4px;
    background: linear-gradient(190.01deg, #b7b7b7 -2.46%, #5d87b9 43.76%);
    cursor: pointer;
    pointer-events: auto;
    transform: translateX(110%);
    transition: transform 300ms ease-in-out;
}

.onek-auth-toast.is-visible {
    transform: translateX(0);
}

.onek-auth-toast__surface {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 64px;
    box-sizing: border-box;
    align-items: center;
    padding: 12px 12px 12px 56px;
    border-radius: 4px;
    background: #000;
    color: #fff;
    font: 400 16px/16px Gilroy, sans-serif;
    overflow-wrap: break-word;
}

.onek-auth-toast__surface::before {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 24px;
    height: 25px;
    content: "";
    background: url("success.svg") center / 24px 25px no-repeat;
    transform: translateY(-50%);
}

.onek-auth-toast.is-error .onek-auth-toast__surface::before {
    left: 18px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background:
        linear-gradient(45deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%),
        linear-gradient(-45deg, transparent 46%, #fff 46%, #fff 54%, transparent 54%),
        #e5484d;
}

.onek-auth-toast.is-error .onek-auth-toast__surface::after {
    content: none;
}
