.adkh-auth-root,
.adkh-auth-root *,
.adkh-auth-root *::before,
.adkh-auth-root *::after {
    box-sizing: border-box
}

.adkh-auth-tabs {
    display: flex;
    gap: .45rem;
    padding: .3rem;
    border: 1px solid color-mix(in srgb, var(--adkh-primary-color, #a4834e) 22%, transparent);
    border-radius: 1rem;
    background: rgba(250, 248, 244, .95);
    margin: 0 0 1.1rem
}

.adkh-auth-tab {
    min-height: 2.8rem;
    flex: 1;
    border: 0;
    border-radius: .75rem;
    background: transparent;
    color: #596165;
    font: inherit;
    cursor: pointer;
    transition: .2s
}

.adkh-auth-tab.is-active {
    background: var(--adkh-primary-color, #a4834e);
    color: #fff;
    box-shadow: 0 .5rem 1.2rem rgba(55, 42, 24, .09)
}

.adkh-auth-panel[hidden] {
    display: none !important
}

.adkh-auth-panel.is-active {
    display: block
}

.adkh-auth-otp-panel {
    direction: rtl
}

.adkh-auth-otp-intro {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
    padding: .9rem;
    border: 1px solid rgba(164, 131, 78, .18);
    border-radius: .9rem;
    background: #fff
}

.adkh-auth-otp-icon {
    width: 2.8rem;
    height: 2.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.8rem;
    border: 1px solid rgba(164, 131, 78, .25);
    border-radius: .75rem;
    color: var(--adkh-primary-color, #a4834e);
    background: #faf8f4
}

.adkh-auth-otp-intro strong {
    display: block;
    color: #29353b;
    font-size: .92rem
}

.adkh-auth-otp-intro p {
    margin: .15rem 0 0 !important;
    font-size: .72rem !important;
    color: #7a8185 !important;
    line-height: 1.8 !important
}

.adkh-auth-otp-unavailable {
    padding: .9rem;
    border: 1px solid #efd8b8;
    border-radius: .8rem;
    background: #fff8ee;
    color: #7b5728;
    font-size: .76rem
}

.adkh-auth-otp-step {
    display: none
}

.adkh-auth-otp-step.is-active {
    display: block
}

.adkh-auth-otp-form label {
    display: block;
    margin: 0 0 .42rem;
    color: #303b40;
    font-size: .75rem;
    font-weight: 650
}

.adkh-auth-otp-control {
    position: relative
}

.adkh-auth-otp-control>span {
    position: absolute;
    inset-inline-start: .9rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    color: var(--adkh-primary-color, #a4834e);
    pointer-events: none
}

.adkh-auth-otp-form input[type=tel],
.adkh-auth-otp-code {
    width: 100%;
    height: 3.25rem;
    padding: .65rem 3rem .65rem 1rem;
    border: 1px solid #e4ddd2 !important;
    border-radius: .8rem !important;
    outline: none !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #2d383e;
    font: inherit;
    direction: ltr;
    text-align: left;
    transition: border-color .2s
}

.adkh-auth-otp-code {
    padding: .65rem 1rem !important;
    text-align: center !important;
    letter-spacing: .55rem;
    font-size: 1.15rem
}

.adkh-auth-otp-form input:focus {
    border-color: var(--adkh-primary-color, #a4834e) !important;
    box-shadow: none !important
}

.adkh-auth-otp-submit {
    width: 100%;
    min-height: 3.1rem;
    margin-top: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: 1px solid var(--adkh-primary-color, #a4834e);
    border-radius: .8rem;
    background: #fff;
    color: var(--adkh-primary-color, #a4834e);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: .2s
}

.adkh-auth-otp-submit:hover,
.adkh-auth-otp-submit:focus-visible {
    background: var(--adkh-primary-color, #a4834e);
    color: #fff;
    transform: translateY(-1px)
}

.adkh-auth-otp-submit:disabled {
    opacity: .6;
    cursor: wait;
    transform: none
}

.adkh-auth-otp-terms {
    display: flex !important;
    align-items: center;
    gap: .45rem;
    margin: .75rem 0 0 !important;
    font-weight: 500 !important
}

.adkh-auth-otp-terms input {
    accent-color: var(--adkh-primary-color, #a4834e)
}

.adkh-auth-otp-code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem
}

.adkh-auth-otp-code-head strong {
    display: block;
    color: #2d383e
}

.adkh-auth-otp-code-head small {
    display: block;
    color: #8a9093;
    direction: ltr;
    text-align: right
}

.adkh-auth-otp-code-head button,
.adkh-auth-otp-resend {
    border: 0;
    background: transparent;
    color: var(--adkh-primary-color, #a4834e);
    font: inherit;
    cursor: pointer
}

.adkh-auth-otp-resend {
    width: 100%;
    margin-top: .75rem;
    font-size: .72rem
}

.adkh-auth-otp-resend:disabled {
    color: #a7aaac;
    cursor: not-allowed
}

.adkh-auth-otp-message {
    min-height: 1.8rem;
    margin-top: .65rem;
    padding: .35rem .55rem;
    border-radius: .5rem;
    font-size: .72rem;
    text-align: center
}

.adkh-auth-otp-message.is-error {
    background: #fff1f1;
    color: #9d3f45
}

.adkh-auth-otp-message.is-success {
    background: #eefaf3;
    color: #147244
}

@media(max-width:620px) {
    .adkh-auth-tabs {
        flex-direction: column
    }

    .adkh-auth-otp-code-head {
        align-items: flex-start;
        flex-direction: column
    }
}

.adkh-auth-otp-submit .adkh-auth-action-arrow {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
}

.adkh-auth-otp-submit:hover .adkh-auth-action-arrow,
.adkh-auth-otp-submit:focus-visible .adkh-auth-action-arrow {
    transform: translateX(-2px)
}

.adkh-auth-otp-submit.is-loading .adkh-auth-action-arrow {
    opacity: .35;
    transform: none
}

.adkh-auth-account-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-top: 1rem;
    padding: .8rem .9rem;
    border: 1px dashed color-mix(in srgb, var(--adkh-primary-color, #a4834e) 32%, transparent);
    border-radius: .85rem;
    background: color-mix(in srgb, var(--adkh-primary-color, #a4834e) 5%, #fff);
    color: #657076;
    font-size: .78rem;
}

.adkh-auth-account-switch>a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    min-height: 2.25rem;
    padding: .35rem .7rem;
    border-radius: .65rem;
    background: #fff;
    color: var(--adkh-primary-color, #a4834e);
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 .25rem .8rem rgba(55, 42, 24, .06);
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.adkh-auth-account-switch>a svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.adkh-auth-account-switch>a:hover,
.adkh-auth-account-switch>a:focus-visible {
    background: var(--adkh-primary-color, #a4834e);
    color: #fff;
    transform: translateY(-1px);
}

@media(max-width:620px) {
    .adkh-auth-account-switch {
        align-items: stretch;
        flex-direction: column;
        text-align: center
    }

    .adkh-auth-account-switch>a {
        width: 100%
    }
}

@media(prefers-reduced-motion:reduce) {

    .adkh-auth-otp-submit .adkh-auth-action-arrow,
    .adkh-auth-account-switch>a {
        transition: none
    }
}


@media screen and (min-width : 768px) {
    .adkh-auth-otp-panel {
        margin-left: 24px !important;
    }
}