/* ============================================================
 *  FONT FACE
 * ============================================================ */
@font-face {
    font-family: 'IRsans';
    src: url('../fonts/IRANSansWebFaNum.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IRsans';
    src: url('../fonts/IRANSansWebFaNum-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================================
 *  WRAPPER
 * ============================================================ */
.solo-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f9fc;
    padding: 20px;
}

.solo-login-wrapper .boxll {
    direction: rtl;
    text-align: right;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    min-height: 600px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.solo-login-wrapper .boxll *,
.solo-login-wrapper .boxll *::before,
.solo-login-wrapper .boxll *::after {
    box-sizing: border-box;
}
.text-center .is-divider, .text-center .is-star-rating, .text-center .star-rating, .text-center>div, .text-center>div>div {
    margin-left: unset !important;
    margin-right: unset !important;
}
/* ============================================================
 *  COLUMNS
 * ============================================================ */
.solo-login-col {
    padding: 40px 30px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.solo-bg-col {
    background-color: #eef2f7;
    min-height: 600px;
}

.solo-dark .solo-login-wrapper {
    background: #0f172a;
}

.solo-dark .solo-login-wrapper .boxll {
    background: #1e293b;
    color: #e2e8f0;
}

/* ============================================================
 *  LOGO & TITLE
 * ============================================================ */
.solo-logo-link {
    display: inline-block;
    margin-bottom: 16px;
}

.solo-logo-link img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

.welcome-text {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
}

.solo-title {
    margin: 12px 0 24px;
    font-size: 18px;
    font-weight: 700;
    color: var(--solo-primary, #042e49);
}

.solo-title .divider {
    margin: 0 8px;
    color: #cbd5e1;
}

/* ============================================================
 *  STEPS
 * ============================================================ */
.login .step-2,
.login .step-3,
.login .step-2-register {
    display: none;
}

.login .step-1,
.login .step-2,
.login .step-2-register,
.login .step-3 {
    width: 100%;
}

.login .step-1 .content,
.login .step-2 .content,
.login .step-2-register .content,
.login .step-3 .content {
    min-height: 200px;
}

/* ============================================================
 *  FORM ITEMS
 * ============================================================ */
.form-item {
    position: relative;
    margin: 20px 0;
    width: 100%;
}

.form-item input.form-control {
    width: 100%;
    height: 56px;
    padding: 20px 14px 6px;
    font-size: 15px;
    line-height: 1.4;
    text-align: right;
    direction: rtl;
    color: #1e293b;
    background: #fff;
    border: 1.5px solid #d8dee9;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.form-item input.form-control:focus {
    outline: none;
    border-color: var(--solo-primary, #042e49);
    box-shadow: 0 0 0 3px rgba(4, 46, 73, 0.1);
}

.form-item label {
    position: absolute;
    top: 18px;
    right: 14px;
    z-index: 2;
    padding: 0 4px;
    font-size: 13px;
    color: #94a3b8;
    background: #fff;
    cursor: text;
    transition: all 0.2s ease;
    pointer-events: none;
}

.form-item input.form-control:focus + label,
.form-item input.form-control:not(:placeholder-shown) + label {
    top: -9px;
    right: 10px;
    font-size: 11px;
    color: var(--solo-primary, #042e49);
}
/* ============================================================
 *  COUNTRY SELECT
 * ============================================================ */
.login .soal-code {
    position: absolute;
    top: 0;
    left: 0;
    width: 24%;
    height: 56px;
    padding: 8px;
    border: 1.5px solid #d8dee9;
    border-right: 0;
    border-radius: 0 8px 8px 0;
    background: #f4f6fa;
    color: #334155;
    font-size: 13px;
    text-align: center;
    direction: ltr;
    cursor: pointer;
    font-family: inherit;
    z-index: 3;
    display: none;
}

.login .soal-code:focus {
    outline: none;
    border-color: var(--solo-primary, #042e49);
}

.form-item.has-country .soal-code {
    display: block;
}

.form-item.has-country input.form-control {
    width: 76% !important;
    border-radius: 0 8px 8px 0 !important;
    padding-left: 12px;
}

.form-item.has-country label {
    right: calc(24% + 14px);
}

.form-item input.form-control {
    width: 100%;
    transition: width 0.2s ease;
}
/* ============================================================
 *  BUTTONS
 * ============================================================ */
.login .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 20px;
    border: 0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    background: var(--solo-primary, #042e49);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.1s ease;
    margin-top: 12px;
}

.login .btn:hover,
.login .btn:focus {
    background: #063a5e;
    outline: none;
}

.login .btn:active {
    transform: translateY(1px);
}

.login .btn:disabled,
.login .btn[disabled] {
    background: #8a9bab;
    cursor: not-allowed;
    opacity: 0.7;
}

.login .btn-red {
    background: var(--solo-secondary, #d92d2d);
}

.login .btn-red:hover,
.login .btn-red:focus {
    background: #b82222;
}

.login .btn-check-code {
    margin: 16px 0 !important;
}

.login .float-left {
    float: none;
}

/* ============================================================
 *  ERROR & REQUIRED
 * ============================================================ */
.login .error {
    display: none;
    width: 100%;
    margin: 12px 0;
    font-size: 13px;
    color: var(--solo-secondary, #d92d2d);
    text-align: center;
}

.login .error:not(:empty) {
    display: block;
}

.login .error-input {
    border-color: var(--solo-secondary, #d92d2d) !important;
}

.login .requierd {
    display: none;
    font-size: 11px;
    color: var(--solo-secondary, #d92d2d);
    text-align: right;
    padding: 4px 6px 0 0;
}

/* ============================================================
 *  BOX SEGMENT
 * ============================================================ */
.login .box-segment {
    position: relative;
    padding: 20px 0;
    font-size: 13px;
    color: #292a33;
    line-height: 1.8;
}

.login .box-segment:not(:last-child) {
    border-bottom: 1px solid #f1f5f9;
}

.box-segment svg {
    width: 20px;
    height: 20px;
    fill: #444;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ============================================================
 *  OTP INPUTS
 * ============================================================ */
.verification-code {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
    direction: ltr !important;
    unicode-bidi: bidi-override;
}

.otp-input {
    flex: 1 1 0;
    min-width: 0;
    height: 52px;
    padding: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    background: #fff;
    border: 1.5px solid #d8dee9;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    direction: ltr !important;
    unicode-bidi: plaintext;
    -moz-appearance: textfield;
}

.otp-input::-webkit-outer-spin-button,
.otp-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-input:focus {
    border-color: var(--solo-primary, #042e49);
    box-shadow: 0 0 0 3px rgba(4, 46, 73, 0.1);
}

.otp-input:disabled {
    background: #f8fafc;
    cursor: not-allowed;
}
/* ============================================================
 *  RESEND / TIMER
 * ============================================================ */
.additional {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
}

.login .btn-resend {
    padding: 8px 16px;
    border: 0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    color: #fff;
    background: #009bff;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.login .btn-resend:hover:not(:disabled) {
    background: #0087e0;
}

.login .btn-resend:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.countdown {
    font-size: 14px;
    color: var(--solo-secondary, #d92d2d);
    padding: 4px 12px;
    border: 1px dashed var(--solo-secondary, #d92d2d);
    border-radius: 4px;
    display: none;
}

/* ============================================================
 *  EDIT USERNAME
 * ============================================================ */
.editusername {
    display: none;
    margin-top: 16px;
    font-size: 14px;
    color: var(--solo-primary, #042e49);
    cursor: pointer;
    text-decoration: none;
}

.editusername i {
    display: inline-block;
    margin-left: 6px;
    padding: 3px 5px;
    font-size: 10px;
    color: #fff;
    background: var(--solo-primary, #042e49);
    border-radius: 3px;
}

/* ============================================================
 *  BUTTON REGISTER
 * ============================================================ */
.btnregister {
    display: none;
    width: 100%;
    margin-top: 12px;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btnregister p {
    flex: 1 1 100%;
    margin: 0;
    line-height: 1.6;
    font-size: 12px;
    text-align: right;
}

.btnregister .regosternow {
    padding: 6px 14px;
    font-size: 13px;
    color: #fff;
    background: #438700;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btnregister .regosternow:hover {
    background: #356b00;
}

.btnregister .login-again {
    padding: 6px 12px;
    font-size: 13px;
    color: #464746;
    border: 1px solid #505250;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btnregister .login-again:hover {
    background: #f4f4f4;
}

/* ============================================================
 *  OTP / EMAIL / USER-PASS BUTTONS
 * ============================================================ */
.login .btn-otp,
.login .email-otp {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    padding: 12px 8px;
    font-family: inherit;
    font-size: 13px;
    color: #222;
    background: transparent;
    border: 0;
    border-bottom: 1px dashed #cbd5e1;
    cursor: pointer;
    text-align: right;
    transition: background-color 0.2s ease;
}

.login .btn-otp:hover,
.login .email-otp:hover {
    background: #f8fafc;
}

.login .user-pass {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px 12px;
    font-family: inherit;
    font-size: 13px;
    color: #444;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: right;
    transition: color 0.2s ease;
}

.login .user-pass:hover {
    color: var(--solo-primary, #042e49);
}

.login .user-pass svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================================
 *  REQUEST SMS / EMAIL LABELS
 * ============================================================ */
.login .label-icon {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: #333;
    text-align: right;
}

.login .label-icon.request-sms.mb-3,
.login .label-icon.request-email.mb-3 {
    margin-bottom: 12px;
}

.login .label-icon svg,
.login .label-icon img {
    flex-shrink: 0;
}

/* ============================================================
 *  LOADER
 * ============================================================ */
.login .loader-main {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
    border-radius: 8px;
}

.login .loader-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader {
    display: inline-block;
    width: 48px;
    height: 48px;
    border-width: 3px;
    border-style: dashed solid solid dotted;
    border-color: #ff3d00 #ff3d00 transparent #ff3d00;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================================
 *  INFO TEXT
 * ============================================================ */
.txt-info {
    display: block;
    margin-bottom: 12px;
    padding: 10px 12px;
    font-size: 12px;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 6px;
    text-align: right;
}

.login .alert-text {
    font-size: 12px;
    color: #64748b;
    line-height: 1.8;
    text-align: right;
}

/* ============================================================
 *  LINKR
 * ============================================================ */
.linkr {
    margin-top: 20px;
    padding: 10px 0;
    font-size: 11px;
    color: #64748b;
    text-align: center;
    line-height: 1.8;
}

.linkr a {
    color: var(--solo-primary, #042e49);
    text-decoration: underline;
}

/* ============================================================
 *  NASA THEME OVERRIDES
 * ============================================================ */
.html-ready .nasa-static-group-btn,
.nasa-bottom-bar { display: none !important; }

.my-account .row { max-width: 100% !important; }

#ns-checkout-contact h3 { display: none; }

/* ============================================================
 *  RESPONSIVE
 * ============================================================ */
@media (max-width: 991.98px) {
    .solo-login-wrapper {
        padding: 12px;
    }

    .solo-login-wrapper .boxll {
        min-height: auto;
        border-radius: 12px;
    }

    .solo-login-col {
        padding: 30px 20px !important;
    }

    .solo-login-wrapper .boxll {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .login .box-segment {
        padding: 16px 0;
        font-size: 12px;
    }

    .login .btn {
        font-size: 14px;
        min-height: 48px;
    }

    .otp-input {
        height: 46px;
        font-size: 18px;
    }

    .verification-code {
        gap: 5px;
        margin: 16px 0;
    }

    .additional {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .additional .countdown {
        text-align: center;
    }

    .login .soal-code {
        width: 28%;
        font-size: 12px;
        padding: 8px 4px;
    }

    .form-item:has(.soal-code) input.form-control {
        width: 72%;
    }

    .form-item:has(.soal-code) label {
        right: calc(28% + 14px);
    }

    @supports not (selector(:has(*))) {
        .form-item.has-country input.form-control { width: 72%; }
        .form-item.has-country label { right: calc(28% + 14px); }
    }

    .solo-title {
        font-size: 16px;
    }

    .linkr {
        width: 100%;
        padding: 8px;
    }
}

/* ============================================================
 *  DARK MODE
 * ============================================================ */
.solo-dark .form-item input.form-control {
    background: #0f172a;
    color: #e2e8f0;
    border-color: #334155;
}

.solo-dark .form-item label {
    background: #1e293b;
    color: #94a3b8;
}

.solo-dark .login .box-segment {
    color: #e2e8f0;
}

.solo-dark .login .box-segment:not(:last-child) {
    border-bottom-color: #334155;
}

.solo-dark .login .btn-otp,
.solo-dark .login .email-otp {
    color: #e2e8f0;
    border-bottom-color: #334155;
}

.solo-dark .login .btn-otp:hover,
.solo-dark .login .email-otp:hover {
    background: #0f172a;
}

.solo-dark .otp-input {
    background: #0f172a;
    color: #e2e8f0;
    border-color: #334155;
}

.solo-dark .login .user-pass {
    color: #e2e8f0;
}

.solo-dark .login .loader-main {
    background: rgba(15, 23, 42, 0.75);
}

/* ============================================================
 *  REDUCED MOTION
 * ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .solo-login-wrapper *,
    .solo-login-wrapper *::before,
    .solo-login-wrapper *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}