/* IransiteAuth - default template. Override the variables in your skin to match the site theme. */
.ia {
    --ia-primary: #0f766e;
    --ia-primary-hover: #115e59;
    --ia-text: #1f2937;
    --ia-muted: #6b7280;
    --ia-border: #d1d5db;
    --ia-bg: #ffffff;
    --ia-soft: #f3f4f6;
    --ia-danger: #b91c1c;
    --ia-danger-soft: #fef2f2;
    --ia-success: #047857;
    --ia-success-soft: #ecfdf5;
    --ia-radius: 12px;
    color: var(--ia-text);
    font-size: 15px;
    line-height: 1.7;
}

.ia *,
.ia *::before,
.ia *::after {
    box-sizing: border-box;
}

.ia [hidden] {
    display: none !important;
}

.ia-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--ia-bg);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px 24px;
}

.ia-card.ia-account {
    max-width: 760px;
}

.ia-brand {
    text-align: center;
    margin-bottom: 8px;
}

.ia-brand img {
    max-height: 56px;
    max-width: 70%;
}

.ia-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 18px;
    text-align: center;
}

.ia-subtitle {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 6px;
}

.ia-head {
    position: relative;
}

.ia-head .ia-title {
    padding: 0 36px;
}

.ia-back {
    position: absolute;
    top: -2px;
    inset-inline-start: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: var(--ia-soft);
    color: var(--ia-text);
    font-size: 18px;
    line-height: 34px;
    cursor: pointer;
}

.ia-back:hover {
    background: #e5e7eb;
}

.ia[dir="ltr"] .ia-back {
    transform: scaleX(-1);
}

.ia-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin: 14px 0 6px;
}

.ia-field {
    position: relative;
    display: flex;
    align-items: stretch;
}

.ia-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--ia-border);
    border-radius: var(--ia-radius);
    background: #fff;
    color: var(--ia-text);
    font-size: 16px;
    transition: border-color .15s, box-shadow .15s;
}

.ia-input:focus {
    outline: none;
    border-color: var(--ia-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .15);
}

.ia-input.ia-invalid {
    border-color: var(--ia-danger);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, .12);
}

.ia-ltr {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
}

.ia-country {
    height: 48px;
    max-width: 120px;
    margin-inline-end: 8px;
    padding: 0 8px;
    border: 1px solid var(--ia-border);
    border-radius: var(--ia-radius);
    background: #fff;
    direction: ltr;
}

.ia-field .ia-eye {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: 4px;
    width: 42px;
    border: 0;
    background: transparent;
    cursor: pointer;
    opacity: .6;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8S1 12 1 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.ia-field .ia-eye.ia-on {
    opacity: 1;
}

.ia-field .ia-eye+.ia-input,
.ia-field .ia-input:has(+ .ia-eye) {
    padding-inline-end: 46px;
}

.ia-error {
    color: var(--ia-danger);
    font-size: 13px;
    min-height: 0;
    margin-top: 4px;
}

.ia-error:empty {
    display: none;
}

.ia-required {
    color: var(--ia-danger);
}

.ia-message {
    margin: 14px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    background: var(--ia-danger-soft);
    color: var(--ia-danger);
}

.ia-message:empty {
    display: none;
}

.ia-message.ia-success,
.ia-message.ia-info {
    background: var(--ia-success-soft);
    color: var(--ia-success);
}

.ia-hint {
    color: var(--ia-muted);
    font-size: 13px;
    margin: 6px 0 0;
}

.ia-hint:empty {
    display: none;
}

.ia-who {
    text-align: center;
    color: var(--ia-muted);
    margin: -8px 0 8px;
    font-size: 14px;
}

.ia-who-value,
.ia-otp-hint {
    color: var(--ia-text);
    font-weight: 600;
}

.ia-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    margin-top: 18px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--ia-radius);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, opacity .15s;
}

.ia-primary {
    background: var(--ia-primary);
    color: #fff;
}

.ia-primary:hover {
    background: var(--ia-primary-hover);
    color: #fff;
}

.ia-secondary {
    background: #fff;
    color: var(--ia-danger);
    border-color: #fecaca;
}

.ia-secondary:hover {
    background: var(--ia-danger-soft);
}

.ia-ghost {
    background: var(--ia-soft);
    color: var(--ia-text);
}

.ia-ghost:hover {
    background: #e5e7eb;
    color: var(--ia-text);
}

.ia-btn[disabled],
.ia-btn.ia-busy {
    opacity: .65;
    cursor: default;
    pointer-events: none;
}

.ia-btn.ia-busy::after {
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-top-color: transparent;
    animation: ia-spin .7s linear infinite;
}

.ia-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-top: 14px;
}

.ia-link {
    background: none;
    border: 0;
    padding: 0;
    color: var(--ia-primary);
    font-size: 14px;
    cursor: pointer;
}

.ia-link:hover {
    text-decoration: underline;
}

.ia-link[disabled] {
    color: var(--ia-muted);
    cursor: default;
    text-decoration: none;
}

.ia-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
}

.ia-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--ia-primary);
    margin: 0;
}

.ia-hidden-user {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Captcha */
.ia-captcha-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.ia-captcha-img {
    height: 56px;
    border-radius: 10px;
    border: 1px solid var(--ia-border);
    background: var(--ia-soft);
    min-width: 150px;
}

.ia-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--ia-border);
    background: #fff;
    font-size: 20px;
    cursor: pointer;
}

.ia-icon-btn:hover {
    background: var(--ia-soft);
}

.ia-recaptcha {
    margin-top: 14px;
    display: flex;
    justify-content: center;
}

/* One-time code boxes */
.ia-otp {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 18px 0 4px;
}

.ia-otp-box {
    width: 52px;
    height: 58px;
    padding: 0;
    border: 1.5px solid var(--ia-border);
    border-radius: 12px;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: var(--ia-text);
    background: #fff;
    caret-color: var(--ia-primary);
    font-variant-numeric: tabular-nums;
}

.ia-otp-box:focus {
    outline: none;
    border-color: var(--ia-primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, .18);
}

.ia-otp-box.ia-filled {
    border-color: #9ca3af;
    background: #f9fafb;
}

.ia-otp.ia-invalid .ia-otp-box {
    border-color: var(--ia-danger);
    animation: ia-shake .35s;
}

.ia-otp[data-length="7"] .ia-otp-box,
.ia-otp[data-length="8"] .ia-otp-box {
    width: 42px;
    height: 52px;
    font-size: 22px;
    gap: 6px;
}

.ia-timer {
    text-align: center;
    font-size: 14px;
    color: var(--ia-muted);
    margin-top: 10px;
    min-height: 22px;
}

/* Account panel */
.ia-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 18px;
    margin-top: 18px;
}

.ia-sessions>li {
    list-style: none;
    margin: 0;
}

.ia-sessions {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.ia-session {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    position: relative;
}

.ia-session.ia-current {
    border-color: var(--ia-primary);
    background: #f0fdfa;
}

.ia-session strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.ia-session .ia-badge {
    display: inline-block;
    font-size: 11px;
    padding: 1px 8px;
    border-radius: 99px;
    background: var(--ia-primary);
    color: #fff;
    margin-inline-start: 6px;
}

.ia-session .ia-meta {
    color: var(--ia-muted);
}

.ia-session .ia-link {
    margin-top: 6px;
    color: var(--ia-danger);
}

.ia-session-empty {
    color: var(--ia-muted);
    font-size: 14px;
}

.ia-account .ia-btn.ia-secondary,
.ia-account .ia-logout {
    max-width: 320px;
}

.ia-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Done */
.ia-spinner {
    width: 42px;
    height: 42px;
    margin: 12px auto;
    border-radius: 50%;
    border: 3px solid #d1fae5;
    border-top-color: var(--ia-primary);
    animation: ia-spin .8s linear infinite;
}

.ia-step[data-step="done"] .ia-message {
    text-align: center;
}

/* Social logins rendered by DNN */
.ia-social:empty {
    display: none;
}

.ia-social {
    margin-top: 16px;
}

.ia-social ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

@keyframes ia-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ia-shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

@media (max-width: 480px) {
    .ia-card {
        padding: 22px 16px;
        border-radius: 14px;
    }

    .ia-otp {
        gap: 7px;
    }

    .ia-otp-box {
        width: 44px;
        height: 52px;
        font-size: 22px;
    }

    .ia-row {
        grid-template-columns: 1fr;
    }
}

/* ---------------------------------------------------------------- user menu */
.ia-menu {
    min-width: 230px;
}

.ia>.ia-menu {
    max-width: 420px;
    margin: 0 auto;
    background: var(--ia-bg);
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, .06);
}

.ia-menu-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 6px;
}

.ia-menu-head strong {
    display: block;
    font-size: 14px;
    line-height: 1.5;
}

.ia-menu-head .ia-ltr {
    display: block;
    font-size: 12px;
    color: var(--ia-muted);
}

.ia-menu-item {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--ia-text);
    text-decoration: none;
    font-size: 14px;
}

.ia-menu-item:hover,
.ia-menu-item:focus {
    background: var(--ia-soft);
    color: var(--ia-text);
    text-decoration: none;
}

.ia-menu-logout {
    color: var(--ia-danger);
    border-top: 1px solid #f0f0f0;
    margin-top: 6px;
    border-radius: 0 0 10px 10px;
}

.ia-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ia-primary);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

/* ---------------------------------------------------------------- skin object */
.ia-so {
    --ia-primary: #0f766e;
    --ia-primary-hover: #115e59;
    --ia-text: #1f2937;
    --ia-muted: #6b7280;
    --ia-soft: #f3f4f6;
    --ia-bg: #fff;
    --ia-danger: #b91c1c;
    position: relative;
    display: inline-block;
    font-size: 14px;
    line-height: 1.6;
}

.ia-so *,
.ia-so *::before,
.ia-so *::after {
    box-sizing: border-box;
}

.ia-so [hidden] {
    display: none !important;
}

.ia-so-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 1px solid var(--ia-primary);
    border-radius: 999px;
    background: var(--ia-primary);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.ia-so-trigger:hover,
.ia-so-trigger:focus {
    background: var(--ia-primary-hover);
    color: #fff;
    text-decoration: none;
}

.ia-so-user {
    background: #fff;
    color: var(--ia-text);
    border-color: #e5e7eb;
    padding: 0 10px 0 6px;
}

.ia-so-user:hover,
.ia-so-user:focus {
    background: var(--ia-soft);
    color: var(--ia-text);
}

.ia-so-user .ia-avatar {
    width: 28px;
    height: 28px;
    font-size: 13px;
}

.ia-so-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ia-caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: .6;
}

.ia-so-menu {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-end: 0;
    z-index: 10000;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 16px 40px rgba(17, 24, 39, .14);
    color: var(--ia-text);
    text-align: start;
}

.ia-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ia-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, .55);
    backdrop-filter: blur(2px);
}

.ia-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    animation: ia-pop .18s ease-out;
    text-align: start;
}

.ia-modal-dialog .ia {
    padding: 0;
}

.ia-modal-dialog .ia-card {
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}

.ia-modal-dialog .ia-card.ia-account {
    max-width: none;
}

.ia-modal-dialog:has(.ia-account) {
    max-width: 760px;
}

.ia-modal-close {
    position: absolute;
    top: 10px;
    inset-inline-end: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: var(--ia-soft);
    font-size: 22px;
    line-height: 34px;
    cursor: pointer;
    color: var(--ia-text);
}

.ia-modal-close:hover {
    background: #e5e7eb;
}

html.ia-modal-open,
html.ia-modal-open body {
    overflow: hidden;
}

@keyframes ia-pop {
    from {
        transform: translateY(12px) scale(.98);
        opacity: 0;
    }

    to {
        transform: none;
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .ia-modal {
        padding: 0;
        align-items: stretch;
    }

    .ia-modal-dialog {
        max-width: none;
        max-height: none;
        height: 100%;
        background: var(--ia-bg, #fff);
    }

    .ia-modal-dialog .ia-card {
        min-height: 100%;
        border-radius: 0;
        border: 0;
    }

    .ia-so-name {
        display: none;
    }
}

/* Mobile / e-mail in the account panel */
.ia-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ia-soft);
    font-size: 14px;
}

.ia-contact-label {
    color: var(--ia-muted);
    min-width: 64px;
}

.ia-contact-value {
    flex: 1;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: start;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.ia-contact-form {
    margin-top: 12px;
}

.ia-contact-form .ia-btn {
    margin-top: 12px;
}

/* National code / consent steps */
.ia-national-hint {
    margin-bottom: 12px;
}

.ia-consent-text {
    font-size: 14px;
    line-height: 1.9;
    color: var(--ia-text);
}

.ia-consent-text a {
    color: var(--ia-primary);
    font-weight: 600;
}

/* Recent activity */
.ia-events {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    max-height: 320px;
    overflow-y: auto;
}

.ia-event {
    padding: 8px 10px;
    border-inline-start: 3px solid var(--ia-border);
    margin-bottom: 6px;
    font-size: 13px;
}

.ia-event strong {
    font-size: 14px;
}

.ia-event.ia-warn {
    border-inline-start-color: var(--ia-danger);
    background: var(--ia-danger-soft);
}

/* =========================================
   IA Login - New visual design
   Scoped styles: only affect .ia-page
========================================= */

.ia-page {
    --ia-card-bg: #FFEDD5;
    --ia-input-bg: #ffffff;
    --ia-text: #0c0c0c;
    --ia-muted: #6b7280;
    --ia-border: #ced4da;
    --ia-radius: 12px;
    --ia-accent: var(--accent-color, #019D59);

    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;

    align-items: center;
    justify-content: center;

    padding: 24px;
    direction: rtl;

    background-color: #fff;
    background-image: url("/portals/0/img/bg-login.jpg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    font-family: inherit;
    color: var(--ia-text);
}

.ia-page *,
.ia-page *::before,
.ia-page *::after {
    box-sizing: border-box;
}

/* Main card */

.ia-page .ia-card {
    position: relative;
    width: 640px;
    max-width: 100%;
    min-width: 0;

    margin: 3rem 10rem;
    padding: 42px 38px 44px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: var(--ia-card-bg);
    border: 0;
    border-radius: 20px;

    text-align: right;
    direction: rtl;
}

/* Logo */

.ia-page .ia-brand {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 28px;
}

.ia-page .ia-brand img {
    display: block;
    width: auto;
    max-width: 200px;
    max-height: 75px;
    object-fit: contain;
    margin: 0 auto;
}

/* Each step */

.ia-page .ia-step {
    width: 100%;
    min-width: 0;
}

.ia-page .ia-step[hidden],
.ia-page [hidden] {
    display: none !important;
}

/* Titles */

.ia-page .ia-title {
    position: relative;
    width: 100%;
    max-width: 100%;

    margin: 0 0 28px;
    padding: 0 0 17px;

    color: var(--ia-text);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.8;
    text-align: center;

    border-bottom: 1px solid var(--ia-border);
}

.ia-page .ia-head {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

.ia-page .ia-head .ia-title {
    margin-bottom: 22px;
}

.ia-page .ia-title.ia-otp-title {
    margin-bottom: 22px;
}

/* Back button */

.ia-page .ia-back {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;

    width: 34px;
    height: 34px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--ia-text);
    background: transparent;
    border: 0;
    border-radius: 8px;

    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ia-page .ia-back:hover {
    background: rgba(255, 255, 255, 0.55);
}

/* Labels and hints */

.ia-page .ia-label {
    display: block;
    width: 100%;
    margin: 0 0 7px;

    color: var(--ia-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.8;
    text-align: right;
}

.ia-page .ia-hint {
    display: block;
    width: 100%;
    margin: 0 0 18px;

    color: var(--ia-muted);
    font-size: 13px;
    line-height: 1.9;
    text-align: right;
}

.ia-page .ia-required {
    color: #dc2626;
}

/* Input wrappers */

.ia-page .ia-field {
    position: relative;
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ia-page .ia-id-field {
    width: 100%;
}

/* Inputs */

.ia-page .ia-input,
.ia-page input.ia-input,
.ia-page .ia-field input,
.ia-page input[data-field="nationalCode"],
.ia-page .ia-step input[data-field="firstName"],
.ia-page .ia-step input[data-field="lastName"],
.ia-page .ia-step input[data-field="email"],
.ia-page .ia-step input[data-field="introduced"] {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 44px;

    margin: 0;
    padding: 10px 13px;

    color: var(--ia-text);
    background: var(--ia-input-bg);
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: none;
    outline: none;

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;

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

.ia-page .ia-input:focus,
.ia-page .ia-field input:focus {
    background: #fff;
    border-color: var(--ia-accent);
    box-shadow: 0 0 0 3px rgba(1, 157, 89, 0.10);
    outline: none;
}

.ia-page .ia-input::placeholder {
    color: #929292;
    opacity: 1;
}

/* Keep usernames, passwords, codes and email LTR */

.ia-page .ia-ltr,
.ia-page input.ia-ltr,
.ia-page .ia-who-value,
.ia-page .ia-otp,
.ia-page .ia-captcha-input {
    direction: ltr;
    text-align: left;
}

/* Country selector */

.ia-page .ia-country {
    flex: 0 0 auto;
    max-width: 115px;
    min-width: 75px;
    height: 44px;

    padding: 8px;
    color: var(--ia-text);
    background: #fff;
    border: 1px solid transparent;
    border-radius: 8px;
}

/* Password eye button */

.ia-page .ia-eye {
    position: absolute;
    top: 50%;
    right: 8px;
    z-index: 2;

    width: 32px;
    height: 32px;
    padding: 0;

    transform: translateY(-50%);

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #777;
    background: transparent;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.ia-page .ia-eye:hover {
    color: var(--ia-text);
    background: #f3f4f6;
}

.ia-page .ia-field:has(.ia-eye) .ia-input {
    padding-right: 43px;
}

/* Hidden username used for browser autofill */

.ia-page .ia-hidden-user {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Remember me */

.ia-page .ia-check {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;

    width: 100%;
    margin: 16px 0 0;

    color: var(--ia-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.8;
    cursor: pointer;
}

.ia-page .ia-check input[type="checkbox"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--ia-accent);
    cursor: pointer;
}

/* Main action button */

.ia-page .ia-btn,
.ia-page .ia-btn.ia-primary {
    position: relative;
    width: 100%;
    min-height: 48px;
    height: auto;

    margin: 20px 0 0;
    padding: 12px 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    background: var(--ia-accent);
    background-image: none;

    border: 0;
    border-radius: 12px;
    box-shadow: none;

    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;

    cursor: pointer;
    overflow: hidden;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ia-page .ia-btn:hover {
    background: var(--ia-accent);
    filter: brightness(0.94);
}

.ia-page .ia-btn:active {
    transform: translateY(1px);
}

.ia-page .ia-btn:focus-visible,
.ia-page .ia-link:focus-visible,
.ia-page .ia-back:focus-visible {
    outline: 2px solid var(--ia-accent);
    outline-offset: 3px;
}

.ia-page .ia-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Text links */

.ia-page .ia-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;

    width: 100%;
    margin-top: 16px;
}

.ia-page .ia-link,
.ia-page button.ia-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    padding: 3px 0;
    margin: 0;

    color: var(--ia-text);
    background: transparent;
    border: 0;
    box-shadow: none;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.8;
    text-align: center;
    text-decoration: none;

    cursor: pointer;
    transition: color 0.2s ease;
}

.ia-page .ia-link:hover {
    color: var(--ia-accent);
    background: transparent;
}

.ia-page .ia-who {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;

    margin: 0 0 20px;
    font-size: 13px;
}

.ia-page .ia-who-value {
    min-width: 0;
    overflow-wrap: anywhere;
}

.ia-page .ia-change {
    flex: 0 0 auto;
}

/* Error and status messages */

.ia-page .ia-error {
    display: block;
    width: 100%;
    min-height: 0;
    margin-top: 5px;

    color: #dc2626;
    font-size: 12px;
    line-height: 1.8;
    text-align: right;
}

.ia-page .ia-error:empty {
    display: none;
}

.ia-page .ia-message {
    display: block;
    width: 100%;
    margin-top: 12px;

    color: #dc2626;
    font-size: 13px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.ia-page .ia-message:empty {
    display: none;
}

.ia-page .ia-message.ia-success {
    color: #16803c;
}

.ia-page .ia-message[role="status"] {
    text-align: right;
}

/* Captcha */

.ia-page .ia-captcha {
    width: 100%;
    margin-top: 18px;
}

.ia-page .ia-captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.ia-page .ia-captcha-img {
    display: block;
    max-width: calc(100% - 50px);
    height: auto;
    min-height: 40px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

.ia-page .ia-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;

    color: var(--ia-text);
    background: #fff;
    border: 0;
    border-radius: 8px;

    font-size: 23px;
    cursor: pointer;
}

/* OTP */

.ia-page .ia-otp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 10px 0 16px;
}

.ia-page .ia-otp input {
    width: 42px;
    min-width: 0;
    height: 48px;
    padding: 5px;

    color: var(--ia-text);
    background: #fff;
    border: 1px solid transparent;
    border-radius: 8px;

    font-size: 20px;
    text-align: center;
    outline: none;
}

.ia-page .ia-otp input:focus {
    border-color: var(--ia-accent);
    box-shadow: 0 0 0 3px rgba(1, 157, 89, 0.10);
}

/* Resend and timer */

.ia-page .ia-timer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;

    width: 100%;
    margin-top: 12px;

    font-size: 13px;
}

.ia-page .ia-resend-wait {
    color: var(--ia-muted);
}

.ia-page .ia-resend {
    color: var(--ia-accent);
}

/* Profile fields */

.ia-page .ia-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    margin-bottom: 16px;
}

.ia-page .ia-row>div {
    min-width: 0;
}

.ia-page .ia-step[data-step="profile"]>.ia-label {
    margin-top: 14px;
}

.ia-page .ia-step[data-step="profile"]>.ia-input {
    margin-bottom: 0;
}

/* Social login */

.ia-page .ia-social {
    width: 100%;
    margin-top: 18px;
}

.ia-page #socialControls,
.ia-page #socialControls ul.buttonList {
    width: 100%;
    margin: 16px 0 0;
    padding: 0;
}

.ia-page #socialControls ul.buttonList {
    list-style: none;
}

.ia-page #socialControls ul.buttonList li {
    float: none;
    width: 100%;
    margin: 0 0 8px;
    list-style: none;
}

.ia-page #socialControls ul.buttonList li:last-child {
    margin-bottom: 0;
}

.ia-page #socialControls ul.buttonList li a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    min-height: 42px;
    padding: 9px 12px;

    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: none;

    color: var(--ia-text);
    font-family: inherit;
    font-size: 13px;
    text-decoration: none;
    text-shadow: none;
}

.ia-page #socialControls ul.buttonList li a:hover {
    background: #f8fafc;
    border-color: var(--ia-border);
    box-shadow: none;
    text-shadow: none;
}

.ia-page #socialControls ul.buttonList li[id$="_registerItem"] {
    display: none !important;
}

/* Password rules and consent */

.ia-page .ia-rules,
.ia-page .ia-consent-text {
    margin-top: 8px;
    margin-bottom: 12px;
}

/* Loading indicator */

.ia-page .ia-spinner {
    width: 38px;
    height: 38px;
    margin: 10px auto 20px;

    border: 3px solid rgba(0, 0, 0, 0.12);
    border-top-color: var(--ia-accent);
    border-radius: 50%;

    animation: ia-spin 0.8s linear infinite;
}

@keyframes ia-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tablet */

@media (max-width: 767px) {
    .ia-page {
        padding: 20px 14px;
        align-items: center;
    }

    .ia-page .ia-card {
        width: 100%;
        max-width: 520px;
        padding: 32px 26px;
        border-radius: 18px;
    }

    .ia-page .ia-brand {
        margin-bottom: 22px;
    }

    .ia-page .ia-brand img {
        max-width: 170px;
        max-height: 65px;
    }

    .ia-page .ia-title {
        font-size: 18px;
        margin-bottom: 22px;
    }
}

/* Mobile */

@media (max-width: 480px) {
    .ia-page {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 12px;
        align-items: center;
        background-position: center;
    }

    .ia-page .ia-card {
        width: 100%;
        max-width: 100%;
        min-height: 0;
        padding: 28px 20px;
        border-radius: 16px;
        box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
    }

    .ia-page .ia-brand {
        margin-bottom: 20px;
    }

    .ia-page .ia-brand img {
        max-width: 145px;
        max-height: 58px;
    }

    .ia-page .ia-title {
        font-size: 17px;
        line-height: 1.7;
        padding-bottom: 14px;
        margin-bottom: 20px;
    }

    .ia-page .ia-label {
        font-size: 13px;
    }

    .ia-page .ia-input,
    .ia-page .ia-field input,
    .ia-page input[data-field="nationalCode"] {
        height: 44px;
        font-size: 14px;
    }

    .ia-page .ia-btn {
        min-height: 46px;
        font-size: 14px;
    }

    .ia-page .ia-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .ia-page .ia-otp {
        gap: 6px;
    }

    .ia-page .ia-otp input {
        width: 38px;
        height: 44px;
    }

    .ia-page .ia-links {
        gap: 8px;
    }

    .ia-page .ia-link {
        font-size: 12px;
    }
}

/* Small mobile screens */

@media (max-width: 360px) {
    .ia-page {
        padding: 8px;
    }

    .ia-page .ia-card {
        padding: 24px 14px;
    }

    .ia-page .ia-otp {
        gap: 4px;
    }

    .ia-page .ia-otp input {
        width: 34px;
        height: 42px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {

    .ia-page *,
    .ia-page *::before,
    .ia-page *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

.input-wrapper {
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
    direction: ltr;
    border-radius: 12px;
    background: rgb(94, 127, 118, 33%);
    padding: 1rem;
    margin-top: 16px;
    box-shadow: 0 6px 8px rgba(114, 114, 114, 0.5);
}

.input-wrapper .svg-wrapper {
    background-color: white;
    background-color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    align-items: center;
    text-align: center;
    display: flex;
    justify-content: center;
}

.input-wrapper .svg-wrapper svg {

    max-height: 24px;
    max-width: 24px;
}

.txt-login-bg {
    align-items: center;
    justify-content: end;
    position: absolute;
    bottom: 8%;
    left: 17%;
    color: white;
    text-align: center;
    gap: 0.7rem;
    display: flex;
}

.back-link {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 100%;
    margin-bottom: 1rem;
    width: auto;
}