/* --------------------------------------------------------------------------
   Auth Container
-------------------------------------------------------------------------- */

.bd-user-auth {
    max-width: 420px;
    margin: 0 auto;
    font-family: inherit;
}

.bd-user-auth h2 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}


/* --------------------------------------------------------------------------
   Steps (Controlled by JS)
-------------------------------------------------------------------------- */

/*
|--------------------------------------------------------------------------
| FIX:
|--------------------------------------------------------------------------
| Default state: only identity step visible.
| Other steps hidden until JS activates them.
*/

.bd-user-auth__step {
    display: none;
}


/* --------------------------------------------------------------------------
   Field
-------------------------------------------------------------------------- */

.bd-user-auth__field {
    margin-bottom: 16px;
}

.bd-user-auth__field label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
}


/* --------------------------------------------------------------------------
   Input
-------------------------------------------------------------------------- */

.bd-user-auth__input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #ccd0d4;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.bd-user-auth__input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

.bd-user-auth__input::placeholder {
    color: #8c8f94;
}
/* --------------------------------------------------------------------------
   OTP Inputs
-------------------------------------------------------------------------- */

.bd-user-auth__otp-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.bd-user-auth__otp-input {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    background: #fff;

    text-align: center;
    font-size: 20px;
    font-weight: 600;
    line-height: 1;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

.bd-user-auth__otp-input:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
    transform: translateY(-1px);
}

.bd-user-auth__otp-input::selection {
    background: rgba(34, 113, 177, 0.2);
}


/* Remove number arrows (future-safe) */
.bd-user-auth__otp-input::-webkit-outer-spin-button,
.bd-user-auth__otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.bd-user-auth__otp-input[type="number"] {
    -moz-appearance: textfield;
}


/* --------------------------------------------------------------------------
   Actions (Buttons)
-------------------------------------------------------------------------- */

.bd-user-auth__actions {
    margin-top: 10px;
}

.bd-user-auth__actions .bd-btn {
    width: 100%;
    min-height: 42px;
    border-radius: 6px;
    font-size: 15px;
}


/* --------------------------------------------------------------------------
   Help Text
-------------------------------------------------------------------------- */

.bd-user-auth__help {
    margin-top: 10px;
    font-size: 13px;
    color: #646970;
}


/* --------------------------------------------------------------------------
   Messages (Errors / Success)
-------------------------------------------------------------------------- */

.bd-user-auth__messages {
    margin-bottom: 16px;
    font-size: 14px;
}

.bd-user-auth__messages .is-error {
    color: #b32d2e;
}

.bd-user-auth__messages .is-success {
    color: #008a20;
}


/* --------------------------------------------------------------------------
   Loading State (Optional but Ready)
-------------------------------------------------------------------------- */

.bd-user-auth.is-loading {
    pointer-events: none;
    opacity: 0.7;
}


/* --------------------------------------------------------------------------
   Modal
-------------------------------------------------------------------------- */

.bd-user-modal.hidden {
    display: none;
}

.bd-user-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.bd-user-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.bd-user-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 60px auto;
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.bd-user-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #646970;
}

.bd-user-modal__close:hover {
    color: #000;
}


/* --------------------------------------------------------------------------
   Responsive
-------------------------------------------------------------------------- */

@media (max-width: 480px) {
    .bd-user-modal__dialog {
        margin: 30px 12px;
        padding: 20px;
    }
}
.bd-user-auth__otp-group {
    gap: 8px;
}

.bd-user-auth__otp-input {
    width: 46px;
    height: 46px;
    font-size: 18px;
}