/* ==========================================================
   AVH AUTH
   MyListing Authentication — OTP Verification
   ========================================================== */


/* ==========================================================
   OTP Step
   ========================================================== */

.avh-otp-step {
    width: 100%;
}

#avh-otp-box .form-group {
    margin-bottom: 22px;
}


/* ==========================================================
   OTP Header
   ========================================================== */

.avh-otp-header {
    margin-bottom: 32px;
    text-align: center;
}


/* ==========================================================
   OTP Header Icon
   ========================================================== */

.avh-otp-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 68px;
    height: 68px;

    margin: 0 auto 20px;

    border-radius: 50%;

    background: var(--avh-brand-soft);
    color: var(--avh-primary-color);

    font-size: 32px;
    line-height: 1;
}

.avh-otp-header-icon .mi {
    margin: 0;
    color: inherit;
    font-size: inherit;
    line-height: 1;
}


/* ==========================================================
   OTP Heading
   ========================================================== */

.avh-otp-heading {
    margin: 0 0 8px;

    color: var(--avh-heading-color);

    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}


/* ==========================================================
   OTP Description
   ========================================================== */

.avh-otp-description {
    margin: 0 0 5px;

    color: var(--avh-text-color);

    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}


/* ==========================================================
   Verified Phone Number
   ========================================================== */

.avh-otp-phone-number {
    color: var(--avh-primary-color);

    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}


/* ==========================================================
   OTP Input Section
   ========================================================== */

.avh-otp-section {
    width: 100%;
    margin-top: 0;
}

.avh-otp-boxes {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    width: 100%;
}


/* ==========================================================
   OTP Digit Boxes
   ========================================================== */

.avh-otp-boxes input,
.avh-otp-digit {
    flex: 0 0 52px;

    width: 52px;
    min-width: 0;
    max-width: 52px;
    height: 58px;

    margin: 0;
    padding: 0;

    border:
        1px solid
        var(--avh-input-border-color);

    border-radius:
        var(--avh-border-radius);

    background:
        var(--avh-surface);

    box-shadow: none;

    color:
        var(--avh-heading-color);

    font-size: 22px;
    font-weight: 700;
    line-height: 58px;

    text-align: center;

    transition:
        border-color
        var(--avh-transition-normal),
        box-shadow
        var(--avh-transition-normal);
}


/* ==========================================================
   OTP Digit Focus
   ========================================================== */

.avh-otp-boxes input:focus,
.avh-otp-digit:focus {
    border-color:
        var(--avh-otp-active-color);

    box-shadow:
        0 0 0 3px
        var(--avh-focus-ring);

    outline: none;
}


/* ==========================================================
   OTP Countdown
   ========================================================== */

.avh-otp-timer {
    margin-top: 26px;

    color:
        var(--avh-text-color);

    font-size: 14px;
    line-height: 1.5;

    text-align: center;
}

#avh-countdown {
    color:
        var(--avh-primary-color);

    font-weight: 700;
}


/* ==========================================================
   Resend OTP
   ========================================================== */

.avh-resend-wrapper {
    display: none;

    margin-top: 26px;

    text-align: center;
}

.avh-resend-wrapper a {
    color:
        var(--avh-primary-color);

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        opacity
        var(--avh-transition-fast);
}

.avh-resend-wrapper a:hover,
.avh-resend-wrapper a:focus {
    color:
        var(--avh-primary-color);

    opacity: .8;

    text-decoration: underline;
}


/* ==========================================================
   Verify OTP Button

   Button colours are supplied by the AVH Auth Design
   settings through the shared styles in base.css.

   This component controls:
   - Layout
   - Size
   - Spacing
   - Shape
   - Disabled state
   ========================================================== */

#avh-verify-otp {
    width: 100%;
    min-height: 52px;

    margin-top: 26px;

    border-radius:
        var(--avh-border-radius);

    transition:
        opacity
        var(--avh-transition-normal),
        filter
        var(--avh-transition-normal);
}

#avh-verify-otp:disabled {
    cursor: not-allowed;

    opacity: .55;

    filter: grayscale(.15);
}


/* ==========================================================
   Change Phone Number
   ========================================================== */

.avh-change-phone-wrap {
    margin-top: 20px;

    text-align: center;
}

#avh-change-phone-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin: 0;
    padding: 4px;

    border: 0;

    background: transparent;

    box-shadow: none;

    color:
        var(--avh-primary-color);

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;

    text-decoration: none;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}

#avh-change-phone-inline .mi {
    margin: 0;

    color: inherit;

    font-size: 17px;
    line-height: 1;
}

#avh-change-phone-inline:hover,
#avh-change-phone-inline:focus {
    color:
        var(--avh-primary-color);

    background: transparent;

    box-shadow: none;

    text-decoration: underline;

    outline: none;
}


/* ==========================================================
   OTP Privacy Message
   ========================================================== */

.avh-otp-privacy {
    margin-top: 22px;
}