/* OTP forms: glass UI shared by registration and password recovery. */
.otp-panel {
    position: relative;
    z-index: 2;
    overflow: hidden;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 24px;
    background:
        radial-gradient(circle at 86% 8%, rgba(127, 255, 212, .3), transparent 34%),
        radial-gradient(circle at 12% 94%, rgba(255, 179, 198, .26), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .38));
    box-shadow: 0 18px 44px rgba(22, 70, 69, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
    backdrop-filter: blur(20px) saturate(145%);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    text-align: center;
    animation: qatrehOtpEnter .55s cubic-bezier(.2, .8, .2, 1) both;
}

.otp-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(255, 255, 255, .34), transparent 38%, rgba(127, 255, 212, .1));
    pointer-events: none;
}

.otp-panel-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .88);
    border-radius: 19px;
    color: #024b54;
    background: linear-gradient(135deg, rgba(127, 255, 212, .88), rgba(255, 179, 198, .65));
    box-shadow: 0 10px 24px rgba(38, 154, 132, .18);
    font-size: 1.45rem;
    animation: qatrehOtpFloat 3s ease-in-out infinite;
}

.otp-panel h2 {
    margin: 0 0 8px;
    color: var(--text, #27243b);
    font-size: 1.25rem;
    font-weight: 900;
}

.otp-panel > p {
    margin: 0 auto 20px;
    color: var(--text-soft, #5e6072);
    font-size: .86rem;
    line-height: 1.9;
}

.otp-panel bdi {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 8px;
    color: #004f5a;
    background: rgba(127, 255, 212, .38);
    font-weight: 900;
    letter-spacing: .05em;
}

.otp-form {
    display: grid;
    gap: 13px;
    text-align: right;
}

.otp-form .form-field {
    display: grid;
    gap: 7px;
    margin: 0;
}

.otp-form .otp-code-input {
    height: 62px;
    border: 1px solid rgba(33, 106, 107, .18) !important;
    border-radius: 18px !important;
    color: #073e47 !important;
    background: rgba(255, 255, 255, .72) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94), 0 8px 22px rgba(29, 91, 91, .08) !important;
    direction: ltr;
    text-align: center;
    font-family: "Vazirmatn", Tahoma, sans-serif !important;
    font-size: 1.55rem !important;
    font-weight: 900 !important;
    letter-spacing: .42em;
    padding-inline-start: calc(16px + .42em) !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.otp-form .otp-code-input:focus {
    outline: none;
    border-color: rgba(3, 205, 174, .65) !important;
    box-shadow: 0 0 0 4px rgba(0, 238, 205, .12), 0 12px 26px rgba(29, 91, 91, .12) !important;
    transform: translateY(-1px);
}

.otp-form .btn-submit {
    margin-top: 3px;
}

.otp-resend-form {
    margin-top: 14px;
    text-align: center;
}

.otp-link-button {
    appearance: none;
    padding: 7px 12px;
    border: 0;
    border-radius: 12px;
    color: #075c69;
    background: transparent;
    font: 700 .78rem/1.8 "Vazirmatn", Tahoma, sans-serif;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.otp-link-button:hover,
.otp-link-button:focus-visible {
    color: #073e47;
    background: rgba(127, 255, 212, .26);
    transform: translateY(-1px);
    outline: none;
}

.otp-reset-panel {
    padding: 22px;
}

.otp-reset-panel .otp-form {
    gap: 14px;
}

body.page-p-login-forgotpassword #phoneForm {
    display: grid;
    gap: 17px;
}

body.page-p-login-forgotpassword #phoneForm .mb-4 {
    display: grid;
    gap: 9px;
    margin: 0 !important;
}

body.page-p-login-forgotpassword #phoneForm .btn-submit {
    margin-top: 2px;
}

body.page-p-login-forgotpassword .steps .step.active .step-number {
    color: #073e47;
    border-color: rgba(255, 255, 255, .9);
    background: linear-gradient(135deg, rgba(127, 255, 212, .94), rgba(255, 179, 198, .72));
    box-shadow: 0 7px 18px rgba(39, 143, 128, .16);
}

body.page-p-login-forgotpassword .steps .step.active .step-label {
    color: var(--text, #27243b);
    font-weight: 800;
}

@keyframes qatrehOtpEnter {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes qatrehOtpFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-5px) rotate(2deg); }
}

@media (max-width: 560px) {
    .otp-panel,
    .otp-reset-panel {
        padding: 20px 16px;
        border-radius: 21px;
    }

    .otp-form .otp-code-input {
        height: 58px;
        font-size: 1.35rem !important;
        letter-spacing: .32em;
        padding-inline-start: calc(14px + .32em) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .otp-panel,
    .otp-panel-icon {
        animation: none;
    }
}
