/* Panel auth — layout on top of Iran Sahamedar theme */

.panel-auth-page {
    min-height: 100vh;
    position: relative;
    font-size: 16px;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    background: linear-gradient(145deg, #070f1e 0%, #1a2a4a 28%, #2d4a6e 52%, #0f1a2e 78%, #0f1a2e 100%);
    background-size: 220% 220%;
    animation: panel-auth-gradient 16s ease infinite;
}

@keyframes panel-auth-gradient {
    0%, 100% { background-position: 0% 40%; }
    50% { background-position: 100% 60%; }
}

.panel-auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(74, 124, 158, 0.14), transparent 42%),
        radial-gradient(circle at 82% 78%, rgba(45, 74, 110, 0.22), transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(26, 42, 74, 0.55), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.panel-auth-page .page-wrapper {
    position: relative;
    z-index: 1;
}

.panel-auth-page .panel-auth-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
}

.panel-auth-page .panel-auth-header .main-box {
    justify-content: center;
    padding-top: 28px;
}

.panel-auth-page .panel-auth-header .nav-outer {
    justify-content: center;
}

.panel-auth-page .panel-auth-logo-img {
    height: 44px;
    width: auto;
}

.panel-auth-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 30px 60px;
    overflow: hidden;
}

.panel-auth-section::before {
    content: "";
    position: absolute;
    inset: 30px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 1;
}

.panel-auth-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(95.51% 264.21% at 92.63% 41.85%, rgba(0, 7, 31, 0) 0%, rgba(4, 44, 42, 0.85) 99.98%),
        linear-gradient(155deg, rgba(26, 42, 74, 0.75) 0%, rgba(15, 26, 46, 0.92) 45%, rgba(15, 26, 46, 0.88) 100%);
    z-index: 0;
}

.panel-auth-section > .auto-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.panel-auth-card {
    max-width: 480px;
    margin: 0 auto;
    background: var(--theme-color-white);
    border-radius: 24px;
    padding: 40px 38px 36px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-auth-card-lg {
    max-width: 520px;
}

.panel-auth-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eef0f4;
}

.panel-auth-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9aa0a6;
    font-size: 15px;
    font-weight: 600;
}

.panel-auth-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef0f4;
    color: #888;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.panel-auth-step.is-active {
    color: var(--theme-color2);
}

.panel-auth-step.is-active .panel-auth-step-num {
    background: var(--theme-color2);
    color: var(--theme-color1);
}

.panel-auth-step.is-done {
    color: var(--theme-color2);
}

.panel-auth-step.is-done .panel-auth-step-num {
    background: rgba(26, 42, 74, 0.15);
    color: var(--theme-color2);
}

.panel-auth-step-line {
    width: 40px;
    height: 2px;
    background: #eef0f4;
    flex-shrink: 0;
}

.panel-auth-card .sec-title {
    margin-bottom: 24px;
}

.panel-auth-card .sec-title .sub-title {
    margin-bottom: 18px;
}

.panel-auth-card .sec-title .title {
    font-size: 32px;
    margin-bottom: 12px;
}

.panel-auth-card .sec-title .text {
    color: var(--text-color);
    font-size: 17px;
    line-height: 1.85;
    margin: 0;
}

.panel-auth-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--headings-color);
}

.panel-auth-card .form-group {
    margin-bottom: 20px;
}

.panel-auth-card .form-control {
    border-radius: 14px;
    text-align: right;
    direction: rtl;
}

.panel-auth-card .form-control:focus {
    border-color: var(--theme-color2);
    box-shadow: 0 0 0 4px rgba(26, 42, 74, 0.12);
}

.panel-auth-hint {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(26, 42, 74, 0.06);
    border: 1px solid rgba(26, 42, 74, 0.1);
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.85;
    color: var(--text-color);
}

.panel-auth-hint-icon {
    color: var(--theme-color2);
    font-size: 19px;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.panel-auth-card-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #eef0f4;
    text-align: center;
    font-size: 15px;
    color: #888;
    line-height: 1.8;
}

.panel-auth-submit.theme-btn.btn-style-one {
    width: 100%;
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 32px;
    font-size: 18px;
    z-index: 0;
}

.panel-auth-submit.theme-btn.btn-style-one .icon {
    display: inline-flex;
    line-height: 1;
}

.panel-auth-submit.theme-btn.btn-style-one .icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.panel-auth-submit.theme-btn.btn-style-one.is-loading {
    opacity: 0.85;
    pointer-events: none;
}

.panel-auth-alert {
    border-radius: 14px;
    padding: 16px 18px;
    text-align: center;
    font-size: 17px;
    line-height: 1.85;
    color: var(--theme-color2);
    background: rgba(26, 42, 74, 0.08);
    border: 1px solid rgba(26, 42, 74, 0.12);
    margin-bottom: 18px;
}

.panel-auth-countdown {
    text-align: center;
}

.panel-auth-countdown-label {
    color: var(--text-color);
    font-size: 16px;
    margin-bottom: 12px;
}

.panel-auth-countdown-values {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.panel-auth-countdown-values .unit {
    min-width: 52px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--theme-color2);
    color: var(--theme-color1);
    font-size: 24px;
    font-weight: 700;
}

.panel-auth-countdown-expired {
    color: #c0392b;
    font-weight: 700;
}

/* Verify — OTP */
.panel-auth-verify-phone {
    text-align: center;
    padding: 14px 18px;
    border-radius: 14px;
    background: #f4f5f8;
    margin-bottom: 22px;
    font-size: 17px;
    color: var(--text-color);
}

.panel-auth-verify-phone strong {
    display: block;
    margin-top: 6px;
    font-size: 19px;
    color: var(--headings-color);
    direction: rtl;
    unicode-bidi: plaintext;
}

.panel-auth-otp-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--headings-color);
    margin-bottom: 12px;
    text-align: right;
}

.panel-auth-otp-inputs {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
    direction: rtl;
}

.panel-auth-otp-inputs .form-control {
    width: 48px;
    height: 52px;
    padding: 0;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    direction: rtl;
}

.panel-auth-timer {
    text-align: center;
    margin: 20px 0 24px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(26, 42, 74, 0.06);
    border: 1px solid rgba(26, 42, 74, 0.12);
}

.panel-auth-timer-label {
    display: block;
    font-size: 15px;
    color: var(--text-color);
    margin-bottom: 8px;
}

.panel-auth-timer-value {
    display: inline-block;
    min-width: 72px;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--theme-color2);
    color: var(--theme-color1);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    direction: ltr;
    unicode-bidi: plaintext;
}

.panel-auth-timer strong {
    color: var(--theme-color2);
    font-size: 18px;
}

.panel-auth-resend {
    text-align: center;
    margin-top: 16px;
    font-size: 16px;
}

.panel-auth-resend a {
    color: var(--theme-color2);
    font-weight: 700;
    text-decoration: none;
}

.panel-auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    color: var(--text-color);
    font-size: 16px;
    text-decoration: none;
}

.panel-auth-back-link:hover {
    color: var(--theme-color2);
}

.panel-auth-flash {
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.85;
    text-align: center;
}

.panel-auth-flash-error {
    background: rgba(192, 57, 43, 0.1);
    border: 1px solid rgba(192, 57, 43, 0.25);
    color: #a93226;
}

.panel-auth-flash-success {
    background: rgba(26, 42, 74, 0.1);
    border: 1px solid rgba(26, 42, 74, 0.2);
    color: var(--theme-color2);
}

@media (max-width: 767.98px) {
    .panel-auth-section {
        padding: 100px 16px 40px;
    }

    .panel-auth-section::before {
        inset: 16px;
        border-radius: 20px;
    }

    .panel-auth-card {
        padding: 32px 22px 28px;
        border-radius: 20px;
    }

    .panel-auth-card .sec-title .title {
        font-size: 28px;
    }

    .panel-auth-step-label {
        display: none;
    }

    .panel-auth-otp-inputs .form-control {
        width: 42px;
        height: 48px;
        font-size: 22px;
    }
}
