/**
 * iLogin Frontend Styles
 * 
 * @package iLogin
 * @version 1.0.0
 */

/* ============================================
   Variables & Reset
   ============================================ */
:root {
    --ilogin-primary: #272727;
    --ilogin-primary-hover: #434343;
    --ilogin-secondary: #f0f0f1;
    --ilogin-secondary-hover: #dcdcde;
    --ilogin-success: #00a32a;
    --ilogin-error: #d63638;
    --ilogin-warning: #dba617;
    --ilogin-info: #c7e6ff;
    --ilogin-text: #1d2327;
    --ilogin-text-light: #a4a4a4;
    --ilogin-border: #dcdcde;
    --ilogin-bg: #ffffff;
    --ilogin-bg-light: #f6f7f7;
    --ilogin-shadow: rgba(0, 0, 0, 0.1);
    --ilogin-radius: 8px;
    --ilogin-transition: all 0.3s ease;
}

/* ============================================
   Wrapper & Container
   ============================================ */
/*body:has(.ilogin-wrapper) {
    overflow: hidden;
}*/

.ilogin-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: var(--ilogin-bg-light);
    height: 83vh;
    box-sizing: border-box;
}

.ilogin-container {
    width: 100%;
    max-width: 450px;
    background: var(--ilogin-bg);
    border-radius: var(--ilogin-radius);
    box-shadow: 0 4px 20px var(--ilogin-shadow);
    padding: 40px;
    margin: 0 auto;
}

/* ============================================
   Logo
   ============================================ */
.ilogin-logo {
    text-align: center;
    margin-bottom: 30px;
}

.ilogin-logo .ilogin-logo-link {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.ilogin-logo img {
    max-width: 200px;
    height: auto;
}

/* ============================================
   Header
   ============================================ */
.ilogin-header {
    text-align: center;
    margin-bottom: 30px;
}

.ilogin-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    font-weight: 600;
    color: var(--ilogin-text);
    border: 0;
    padding: 0;
}

.ilogin-header p {
    margin: 0;
    color: var(--ilogin-text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ============================================
   Tabs
   ============================================ */
.ilogin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--ilogin-border);
}

.ilogin-tab {
    flex: 1;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--ilogin-text-light);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ilogin-transition);
    margin-bottom: -2px;
}

.ilogin-tab:hover {
    color: var(--ilogin-primary);
}

.ilogin-tab.active {
    color: var(--ilogin-primary);
    border-bottom-color: var(--ilogin-primary);
}

/* ============================================
   Tab Content
   ============================================ */
.ilogin-tab-content {
    display: none;
}

.ilogin-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Form Elements
   ============================================ */
.ilogin-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ilogin-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

.ilogin-field label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ilogin-text);
    cursor: default;
}

.ilogin-field-title {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.ilogin-field input[type="text"],
.ilogin-field input[type="email"],
.ilogin-field input[type="tel"],
.ilogin-field input[type="password"],
.ilogin-field input[type="url"],
.ilogin-field textarea,
.ilogin-field select {
    width: 100%;
    padding: 2px 16px !important;
    font-size: 15px;
    border: 2px solid var(--ilogin-border);
    border-radius: var(--ilogin-radius);
    background: var(--ilogin-bg);
    color: var(--ilogin-text);
    transition: var(--ilogin-transition);
    box-sizing: border-box;
    height: 48px;
    min-width: auto;
    font-family: inherit;
}

.ilogin-field input[type="password"],
#reg_password,
#reg_repeat_password,
#login_password,
#current_password,
#new_password,
#confirm_password {
    text-align: left;
    direction: ltr;
}

.rtl .ilogin-field input[type="password"]::placeholder,
.rtl #reg_password::placeholder,
.rtl #reg_repeat_password::placeholder,
#current_password::placeholder,
#new_password::placeholder,
#confirm_password::placeholder {
    text-align: right;
    padding-right: 20px;
}

.ilogin-field input:focus,
.ilogin-field textarea:focus,
.ilogin-field select:focus {
    outline: none;
    border-color: var(--ilogin-primary);
    box-shadow: 0 0 0;
}

.ilogin-field input::placeholder,
.ilogin-field textarea::placeholder {
    color: var(--ilogin-text-light);
}

.ilogin-field textarea {
    min-height: 100px;
    resize: vertical;
}

.ilogin-field:has(.ilogin-password-strength.ilogin-active) {
    margin-bottom: 0;
}

.ilogin-combined-identifier {
    text-align: left !important;
    direction: ltr !important;
}

.ilogin-combined-identifier::placeholder {
    text-align: right;
}

/* ============================================
   Floating Labels (opt-in: container .ilogin-fields-float)
   The wrapping label becomes the overlay; the label text
   (.ilogin-field-title) floats above the input on focus or
   when the field has a value.
   ============================================ */
.ilogin-fields-float .ilogin-field:not(:has(.ilogin-otp-inputs)):not(:has(.ilogin-checkbox)) label {
    position: relative;
    display: block;
    cursor: text;
}

.ilogin-fields-float .ilogin-field .ilogin-field-title {
    position: absolute;
    top: 15px;
    inset-inline-start: 17px;
    color: inherit;
    pointer-events: none;
    transform-origin: left center;
    transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1), background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    max-width: calc(100% - 34px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.rtl .ilogin-fields-float .ilogin-field .ilogin-field-title {
    transform-origin: right center;
}

/* Phone fields with a visible country selector: keep the label
   clear of the flag container. */
.ilogin-fields-float .ilogin-field label:has(.iti--allow-dropdown) .ilogin-field-title {
    inset-inline-start: 75px;
}

.ilogin-fields-float .ilogin-field:has(.ilogin-country-hidden) label .ilogin-field-title {
    inset-inline-start: 17px;
}

/* Floating state: focused, filled, or a select box.
   Selects always show a value ("Selectâ€¦"), so their label rests floated. */
.ilogin-fields-float .ilogin-field label {
    color: var(--ilogin-text-light);
}

.ilogin-fields-float .ilogin-field label:focus-within,
.ilogin-fields-float .ilogin-field:has(select) label,
.ilogin-fields-float .ilogin-field.ilogin-has-value label {
    color: var(--ilogin-primary);
}

.ilogin-fields-float .ilogin-field label:focus-within .ilogin-field-title,
.ilogin-fields-float .ilogin-field:has(select) .ilogin-field-title,
.ilogin-fields-float .ilogin-field.ilogin-has-value .ilogin-field-title {
    transform: translateY(-21px) scale(0.8);
    padding-inline: 0.25em;
    background: var(--ilogin-bg);
    border-radius: 4px;
}

/* Browser autofill does not fire input/change events; this keyframe hook
   lets frontend.js detect the fill and keep the label floated. */
.ilogin-fields-float input:-webkit-autofill,
.ilogin-fields-float textarea:-webkit-autofill {
    animation-name: ilogin-onautofill;
}

@keyframes ilogin-onautofill {
    from {
        background-color: transparent;
    }

    to {
        background-color: transparent;
    }
}

/* The resting label covers the input, so hide placeholders until focus */
.ilogin-fields-float .ilogin-field:not(:has(select)) input::placeholder,
.ilogin-fields-float .ilogin-field:not(:has(select)) textarea::placeholder {
    color: transparent !important;
}

.ilogin-fields-float .ilogin-field input:focus::placeholder,
.ilogin-fields-float .ilogin-field textarea:focus::placeholder {
    color: var(--ilogin-text-light);
}

/* ============================================
   Password Wrapper
   ============================================ */
.ilogin-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ilogin-password-wrapper input {
    padding-right: 45px;
}

.ilogin-toggle-password {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--ilogin-text-light);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: var(--ilogin-transition);
}

.ilogin-toggle-password:hover {
    color: var(--ilogin-primary);
}

.ilogin-toggle-password .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

/* ============================================
   Password Strength Meter
   ============================================ */
.ilogin-password-strength {
    margin-top: 8px;
    display: none;
}

.strength-meter {
    width: 100%;
    height: 6px;
    background: var(--ilogin-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-meter-fill {
    height: 100%;
    width: 0;
    transition: var(--ilogin-transition);
    border-radius: 3px;
    float: left;
}

.strength-meter-fill.weak {
    background: var(--ilogin-error);
}

.strength-meter-fill.medium {
    background: var(--ilogin-warning);
}

.strength-meter-fill.strong {
    background: var(--ilogin-info);
}

.strength-meter-fill.very-strong {
    background: var(--ilogin-success);
}

.strength-text {
    font-size: 13px;
    color: var(--ilogin-text-light);
    margin: 0;
    text-align: left;
}

/* ============================================
   Checkboxes & Radio Buttons
   ============================================ */
.ilogin-checkbox,
.ilogin-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    flex-direction: row !important;
}

.ilogin-checkbox input[type="checkbox"],
.ilogin-radio input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.ilogin-checkbox span,
.ilogin-radio span {
    font-size: 14px;
    color: var(--ilogin-text);
    line-height: 1.5;
}

.ilogin-checkbox a,
.ilogin-radio a {
    color: var(--ilogin-primary);
    text-decoration: none;
}

.ilogin-checkbox a:hover,
.ilogin-radio a:hover {
    text-decoration: underline;
}

.ilogin-checkbox input[type="checkbox"] {
    appearance: none;
    background-color: #dfe1e4;
    border-radius: 72px;
    border-style: none;
    flex-shrink: 0;
    height: 20px;
    margin: 0;
    position: relative;
    width: 30px;
}

.ilogin-checkbox input[type="checkbox"]::before {
    bottom: -6px;
    content: "";
    left: -6px;
    position: absolute;
    right: -6px;
    top: -6px;
}

.ilogin-checkbox input[type="checkbox"],
.ilogin-checkbox input[type="checkbox"]::after {
    transition: all 100ms ease-out;
}

.ilogin-checkbox input[type="checkbox"]::after {
    background-color: #fff;
    border-radius: 50%;
    content: "";
    height: 14px;
    left: 3px;
    position: absolute;
    top: 2px;
    width: 14px;
}


.ilogin-checkbox input[type="checkbox"]:hover {
    background-color: #c9cbcd;
    transition-duration: 0s;
}

.ilogin-checkbox input[type="checkbox"]:checked {
    background-color: var(--ilogin-primary);
}

.ilogin-checkbox input[type="checkbox"]:checked::after {
    background-color: #fff;
    left: 13px;
}


.ilogin-checkbox input[type="checkbox"]:checked:hover {
    background-color: var(--ilogin-primary);
}

/* ============================================
   Choice fields laid out as cards or pills
   ============================================ */
.ilogin-choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

/*
 * More specific than `.ilogin-field label`, which would otherwise force the
 * card back into a stacked, non-clickable label.
 */
.ilogin-field .ilogin-choice {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    border: 1px solid var(--ilogin-border);
    border-radius: var(--ilogin-radius);
    background: var(--ilogin-bg);
    color: var(--ilogin-text);
    font-weight: 500;
    transition: var(--ilogin-transition);
}

/*
 * The radio stays in the layout â€” the submit handler skips any control jQuery
 * reports as hidden, so it is clipped rather than taken out of the flow.
 */
.ilogin-field .ilogin-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    border: 0;
    padding: 0;
    pointer-events: none;
}

.ilogin-choice-label {
    color: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.ilogin-field .ilogin-choice:hover {
    border-color: var(--ilogin-primary);
}

.ilogin-field .ilogin-choice:has(input[type="radio"]:checked) {
    border-color: var(--ilogin-primary);
    background: var(--ilogin-bg-light);
}

.ilogin-field .ilogin-choice:has(input[type="radio"]:focus-visible) {
    outline: 2px solid var(--ilogin-primary);
    outline-offset: 2px;
}

/* Boxes: full-width cards, one per row. */
.ilogin-choice-boxes {
    flex-direction: row;
}

.ilogin-field .ilogin-choice-boxes .ilogin-choice {
    padding: 6px 12px;
}

.ilogin-field .ilogin-choice-boxes .ilogin-choice {}

/* A tick on the chosen card, so the state never rests on colour alone. */
.ilogin-choice-boxes .ilogin-choice:has(input:checked)::after {
    content: "";
    flex-shrink: 0;
    width: 6px;
    height: 11px;
    margin-left: auto;
    border: solid var(--ilogin-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: var(--ilogin-transition);
}

.ilogin-choice-boxes .ilogin-choice:has(input[type="radio"]:checked)::after {
    transform: rotate(45deg) scale(1);
}

/* Pills: compact chips that sit on one row and wrap when they run out. */
.ilogin-choice-pills {
    flex-direction: row;
}

.ilogin-field .ilogin-choice-pills .ilogin-choice {
    padding: 8px 18px;
    border-radius: 999px;
}

.ilogin-field .ilogin-choice-pills .ilogin-choice:has(input[type="radio"]:checked) {
    background: var(--ilogin-primary);
    border-color: var(--ilogin-primary);
    color: var(--ilogin-bg);
}

/* ============================================
   Repeatable fields
   ============================================ */

/*
 * A row of sub-inputs on one line, wrapping when the sub-fields are too wide to
 * share it. The remove button is pushed to the end and stays a fixed size so
 * the inputs keep the width they had before it appeared.
 */
.ilogin-repeater-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 10px;
}

/*
 * More specific than `.ilogin-field label`, which stacks labels above their
 * control; a sub-field label sits inside its cell, above its own input.
 */
.ilogin-field .ilogin-repeater-cell {
    flex: 1 1 160px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.ilogin-repeater-cell-label {
    color: var(--ilogin-text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.ilogin-repeater-cell input,
.ilogin-repeater-cell textarea,
.ilogin-repeater-cell select {
    width: 100%;
}

.ilogin-repeater-remove {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--ilogin-text-secondary);
    background: transparent;
    border: 1px solid var(--ilogin-border);
    border-radius: var(--ilogin-radius);
    transition: var(--ilogin-transition);
}

.ilogin-repeater-remove:hover {
    color: #d63638;
    border-color: #d63638;
}

.ilogin-repeater-remove[hidden] {
    display: none;
}

.ilogin-repeater-add {
    cursor: pointer;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ilogin-primary);
    background: var(--ilogin-bg);
    border: 1px dashed var(--ilogin-primary);
    border-radius: var(--ilogin-radius);
    transition: var(--ilogin-transition);
}

.ilogin-repeater-add:hover:not(:disabled) {
    background: var(--ilogin-bg-light);
}

.ilogin-repeater-add:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    color: var(--ilogin-text-secondary);
    border-color: var(--ilogin-border);
}

.ilogin-repeater-hint {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--ilogin-text-secondary);
}


.ilogin-form .ilogin-button,
.ilogin-form .ilogin-button-primary,
.ilogin-button,
.ilogin-button-primary {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: var(--ilogin-radius);
    cursor: pointer;
    transition: var(--ilogin-transition);
    text-align: center;
    display: inline-block;
    text-decoration: none;
    line-height: 1;
    font-family: inherit;
}

.ilogin-form .ilogin-button:disabled,
.ilogin-form .ilogin-button-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Button loading spinner */
.ilogin-btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: none;
}

.ilogin-btn-loading .ilogin-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ilogin-spin 0.6s linear infinite;
    flex-shrink: 0;
}

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

/* Locked fields state */
.ilogin-fields-locked input,
.ilogin-fields-locked select,
.ilogin-fields-locked textarea {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

.ilogin-fields-locked .ilogin-checkbox {
    pointer-events: none;
    opacity: 0.5;
}

.ilogin-form .ilogin-button-primary {
    background: var(--ilogin-primary);
    color: #ffffff;
    width: 100%;
}

.ilogin-form .ilogin-button-primary:hover:not(:disabled),
.ilogin-form .ilogin-button-primary:focus:not(:disabled) {
    background: var(--ilogin-primary-hover);
    box-shadow: 0 4px 12px rgba(149, 150, 150, 0.3);
}

.ilogin-form .ilogin-button-secondary {
    background: var(--ilogin-secondary);
    color: var(--ilogin-text);
    width: 100%;
}

.ilogin-form .ilogin-button-secondary:hover:not(:disabled) {
    background: var(--ilogin-secondary-hover);
}

#ilogin-forgot-link {
    margin-top: 10px;
    display: block;
}

/* ============================================
   Links
   ============================================ */
.ilogin-form .ilogin-link {
    color: var(--ilogin-primary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--ilogin-transition);
    text-decoration: none;
}

.ilogin-form .ilogin-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 10px;
}

.ilogin-form .ilogin-switch-auth {
    background: transparent;
    border: 1px solid var(--ilogin-primary);
    color: var(--ilogin-primary);
    cursor: pointer;
    font-size: 14px;
    padding: 10px;
    margin: 20px 0 10px 0;
    border-radius: 8px;
    height: 42px;
}

.ilogin-form .ilogin-switch-auth:hover {
    text-decoration: none;
}

.ilogin-form #ilogin-back-to-identifier {
    padding: 0;
    margin: 12px 0 0 0;
    font-size: 14px;
}

/* ============================================
   OTP Section
   ============================================ */
.ilogin-form .ilogin-otp-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0 0 8px 0;
}

.ilogin-form .ilogin-otp-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ilogin-form .ilogin-otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    direction: ltr;
    margin-bottom: 16px;
}

.ilogin-form .ilogin-otp-digit,
.ilogin-form input.ilogin-otp-digit {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid var(--ilogin-border);
    border-radius: var(--ilogin-radius);
    background: var(--ilogin-bg);
    transition: var(--ilogin-transition);
    min-width: auto;
}

.ilogin-form .ilogin-otp-digit:focus {
    outline: none;
    border-color: var(--ilogin-primary);
}

.ilogin-form .ilogin-otp-digit.error {
    border-color: #f36969;
}

.ilogin-form .ilogin-otp-single {
    width: 100%;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 8px;
    padding: 16px;
}

.ilogin-form .ilogin-otp-timer {
    text-align: center;
    font-size: 14px;
    color: var(--ilogin-text-light);
    font-weight: 500;
    line-height: 20px;
}

.ilogin-form .ilogin-resend-otp {
    border: 0;
    background-color: transparent;
    margin-bottom: 14px;
    font-size: 16px;
    cursor: pointer;
}

/* ============================================
   Phone Input (intl-tel-input integration)
   ============================================ */
.ilogin-phone-input {
    width: 100%;
}

.iti {
    width: 100%;
}

.iti__flag-container {
    padding: 0px 6px;
    border: 2px solid #ddd;
    border-right: 0;
    border-radius: var(--ilogin-radius) 0px 0px var(--ilogin-radius);
    transition: var(--ilogin-transition);
    cursor: pointer;
    height: 48px;
}

.iti__flag-container .iti__selected-flag {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
    font-size: 14px;
}

.iti__flag-container .iti__arrow {
    display: none;
}

.iti__selected-flag {
    padding: 0 8px 0 12px;
}

/* When "Hide Countries Field" is enabled, intl-tel-input runs with the
   country picker hidden â€” keep only the national phone formatting. */
.ilogin-country-hidden .iti__flag-container,
.ilogin-country-hidden .iti__country-container {
    display: none !important;
}

.ilogin-field:has(.iti--allow-dropdown:focus-within) .iti__flag-container {
    border-color: var(--ilogin-primary);
}

.ilogin-field .iti__country-list {
    position: absolute;
    background: #fff;
    max-height: 150px;
    z-index: 9999;
    padding: 8px !important;
    left: 0;
    margin-top: -2px !important;
    border: 0;
    border-radius: 8px 8px 8px 8px;
    top: 48px;
}

.ilogin-field .iti__country-list::-webkit-scrollbar {
    width: 0px;
}

.rtl .iti__country-list .iti__flag,
.rtl .iti__country-name {
    margin-left: 0 !important;
    margin-right: 6px !important;
    font-size: 14px;
}

/* ============================================
   Messages & Alerts
   ============================================ */
.ilogin-messages:empty {
    display: none;
}

.ilogin-alert {
    padding: 12px 16px;
    border-radius: 8px 0px 0px 8px;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ilogin-alert-success {
    background: rgba(0, 163, 42, 0.1);
    border-right: 4px solid var(--ilogin-success);
    color: var(--ilogin-success);
}

.ilogin-alert-success::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5858 13.4142L7.75735 10.5858L6.34314 12L10.5858 16.2427L17.6568 9.1716L16.2426 7.75739L10.5858 13.4142Z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5858 13.4142L7.75735 10.5858L6.34314 12L10.5858 16.2427L17.6568 9.1716L16.2426 7.75739L10.5858 13.4142Z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
}

.ilogin-alert-error {
    background: rgba(214, 54, 56, 0.1);
    border-right: 2px solid var(--ilogin-error);
    color: var(--ilogin-error);
}

.ilogin-alert-error::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 6C12.5523 6 13 6.44772 13 7V13C13 13.5523 12.5523 14 12 14C11.4477 14 11 13.5523 11 13V7C11 6.44772 11.4477 6 12 6Z' fill='black'/%3E%3Cpath d='M12 16C11.4477 16 11 16.4477 11 17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17C13 16.4477 12.5523 16 12 16Z' fill='black'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 6C12.5523 6 13 6.44772 13 7V13C13 13.5523 12.5523 14 12 14C11.4477 14 11 13.5523 11 13V7C11 6.44772 11.4477 6 12 6Z' fill='black'/%3E%3Cpath d='M12 16C11.4477 16 11 16.4477 11 17C11 17.5523 11.4477 18 12 18C12.5523 18 13 17.5523 13 17C13 16.4477 12.5523 16 12 16Z' fill='black'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12Z' fill='black'/%3E%3C/svg%3E") no-repeat center / contain;
}

.ilogin-alert-warning {
    background: rgba(219, 166, 23, 0.1);
    border-right: 4px solid var(--ilogin-warning);
    color: #856404;
}

.ilogin-alert-warning::before {
    content: "\E902";
    font-size: 18px;
}

.ilogin-alert-info {
    background: rgba(34, 113, 177, 0.1);
    border-right: 4px solid var(--ilogin-info);
    color: var(--ilogin-info);
}

/* ============================================
   Info Box
   ============================================ */
.ilogin-info-box {
    padding: 16px;
    background: var(--ilogin-bg-light);
    border-radius: var(--ilogin-radius);
    border-right: 4px solid var(--ilogin-info);
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.ilogin-info-box .dashicons {
    color: var(--ilogin-info);
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.ilogin-info-box p {
    margin: 0;
    font-size: 14px;
    color: var(--ilogin-text-light);
    line-height: 1.6;
}

.ilogin-info-box strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ilogin-text);
}

.ilogin-info-box ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.ilogin-info-box li {
    font-size: 14px;
    color: var(--ilogin-text-light);
    margin-bottom: 4px;
}

/* ============================================
   Footer Links
   ============================================ */
.ilogin-footer-links {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ilogin-border);
}

.ilogin-footer-links .ilogin-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ilogin-footer-links .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.ilogin-fields-float .ilogin-toggle-password {
    display: none;
}

.ilogin-fields-float .ilogin-field.ilogin-has-value .ilogin-toggle-password {
    display: block;
}

/* ============================================
   Captcha
   ============================================ */
.ilogin-captcha {
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.ilogin-internal-captcha {
    display: flex;
    gap: 10px;
}

.ilogin-internal-captcha input {
    flex: 1;
}

.ilogin-internal-captcha #ilogin-captcha-img {
    height: 48px;
    border: 2px solid #dcdcde;
    border-radius: 8px;
}

.ilgoin-internal-captcha .ilogin-captcha-refresh,
.ilogin-internal-captcha .ilogin-captcha-refresh {
    display: flex;
    align-items: center;
    color: #1e73be;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

.ilogin-internal-captcha .ilogin-captcha-refresh:hover {
    text-decoration: underline;
    cursor: pointer;
}

/* ============================================
   Shake Animation
   ============================================ */
@keyframes ilogin-shake {

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

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.ilogin-shake {
    animation: ilogin-shake 0.5s ease-in-out;
}

/* ============================================
   Loading State
   ============================================ */
.ilogin-form.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.ilogin-form.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid var(--ilogin-border);
    border-top-color: var(--ilogin-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ============================================
   Shake Animation (for errors)
   ============================================ */
@keyframes shake {

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

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

.ilogin-field.error input,
.ilogin-field.error select,
.ilogin-field.error textarea {
    border-color: var(--ilogin-error);
    animation: shake 0.5s;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .ilogin-wrapper {
        padding: 20px 15px;
    }

    .ilogin-container {
        padding: 30px 20px;
        max-width: 100%;
    }

    .ilogin-header h2 {
        font-size: 24px;
    }

    .ilogin-tab {
        padding: 10px 15px;
        font-size: 15px;
    }

    .ilogin-otp-digit {
        width: 45px;
        height: 55px;
        font-size: 22px;
    }

    .ilogin-otp-inputs {
        gap: 8px;
    }

    .ilogin-flex-between {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .ilogin-container {
        padding: 25px 15px;
        border-radius: 0;
    }

    .ilogin-header h2 {
        font-size: 22px;
    }

    .ilogin-otp-digit {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }

    .ilogin-otp-inputs {
        gap: 6px;
    }

    .ilogin-button {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* ============================================
   Dark Mode Support (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    .ilogin-dark-mode {
        --ilogin-text: #f0f0f1;
        --ilogin-text-light: #b5b5b5;
        --ilogin-border: #3c434a;
        --ilogin-bg: #1d2327;
        --ilogin-bg-light: #101517;
        --ilogin-shadow: rgba(0, 0, 0, 0.3);
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .ilogin-wrapper {
        background: white;
    }

    .ilogin-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .ilogin-button,
    .ilogin-otp-section,
    .ilogin-toggle-password {
        display: none;
    }
}

/* ============================================
   Accessibility
   ============================================ */
.ilogin-field input:focus-visible,
.ilogin-field select:focus-visible,
.ilogin-field textarea:focus-visible,
.ilogin-button:focus-visible {
    outline: 0;
}

.ilogin-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ============================================
   Custom Scrollbar
   ============================================ */
.ilogin-container::-webkit-scrollbar,
.ilogin-popup-content.ilogin-popup-elementor-content::-webkit-scrollbar {
    width: 8px;
}

.ilogin-container::-webkit-scrollbar-track,
.ilogin-popup-content.ilogin-popup-elementor-content::-webkit-scrollbar-track {
    background: var(--ilogin-bg-light);
}

.ilogin-container::-webkit-scrollbar-thumb,
.ilogin-popup-content.ilogin-popup-elementor-content::-webkit-scrollbar-thumb {
    background: var(--ilogin-border);
    border-radius: 4px;
}

.ilogin-container::-webkit-scrollbar-thumb:hover,
.ilogin-popup-content.ilogin-popup-elementor-content::-webkit-scrollbar-thumb:hover {
    background: var(--ilogin-text-light);
}


/* ============================================
   Additional Utility Classes
   ============================================ */
.ilogin-text-center {
    text-align: center;
}

.ilogin-mt-20 {
    margin-top: 20px;
}

.ilogin-mb-20 {
    margin-bottom: 20px;
}

.ilogin-hidden {
    display: none !important;
}

.ilogin-visible {
    display: block !important;
}

.ilogin-fade-in {
    animation: fadeIn 0.3s ease;
}

.ilogin-fade-out {
    animation: fadeOut 0.3s ease;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

.ilogin-field .iti--allow-dropdown {
    display: flex;
    align-items: center;
    direction: ltr;
    width: 100%;
    box-sizing: border-box;
    transition: var(--ilogin-transition);
}

.ilogin-field .iti--allow-dropdown .ilogin-phone-input {
    border-top-left-radius: 0px;
    border-bottom-left-radius: 0px;
    border-left: 0 !important;
}

.ilogin-field .iti--allow-dropdown .iti__flag-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    height: 48px;
}

.ilogin-field .iti--allow-dropdown:focus-within {
    outline: none;
}

.ilogin-field .iti__country {
    font-size: 14px;
}

/* Combined Form Steps */
.ilogin-form-step {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ilogin-user-info {
    padding: 12px;
    background: #f0f9ff;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    color: #0369a1;
}

.ilogin-form button.ilogin-button-text {
    background: transparent;
    color: #6b7280;
    border: none;
    padding: 8px 0px 8px 0px;
    margin-top: 10px;
    font-size: 14px;
}

.ilogin-button-text:hover {
    color: #374151;
    background: transparent;
}

.ilogin-form button.ilogin-get-via {
    margin: 8px 0 0 0;
    display: block;
}

.ilogin-form-title {
    text-align: center;
    margin-bottom: 24px;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
}

.ilogin-button.ilogin-button-primary {
    background-color: var(--ilogin-primary);
    color: #fff;
    border: 0;
    padding: 14px;
}

.ilogin-button.ilogin-button-primary:hover {
    background-color: var(--ilogin-primary-hover);
}

#ilogin-check-user {
    width: 100%;
    margin-top: 16px;
    font-family: inherit;
}

#ilogin-submit-register {
    padding: 14px 38px;
    margin: 14px 0;
}


/* ============================================
   Identifier Tabs (Email/Phone or Email/Username)
   ============================================ */

.ilogin-identifier-tabs {
    display: flex;
    gap: 20px;
    justify-content: flex-start;
    margin-bottom: 18px;
}

.ilogin-identifier-tab,
button.ilogin-identifier-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 0px;
    background: transparent;
    border: none;
    color: var(--ilogin-text-light);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ilogin-transition);
    width: auto;
    justify-content: flex-start;
    border-radius: 0;
    border-bottom: 2px solid var(--ilogin-text-light);
    font-family: inherit;
}

.ilogin-identifier-tab:hover,
button.ilogin-identifier-tab:hover,
.ilogin-identifier-tab:focus,
button.ilogin-identifier-tab:focus {
    color: var(--ilogin-primary-hover);
    background-color: transparent;
}

.ilogin-identifier-tab .themify {
    font-size: 18px;
    transition: var(--ilogin-transition);
}

.ilogin-identifier-tab:hover {
    background-color: transparent;
    color: var(--ilogin-primary);
    border-color: var(--ilogin-primary);
}

.ilogin-identifier-tab.active {
    color: var(--ilogin-primary);
    box-shadow: none;
    border: 0;
    outline: 0;
    border-bottom: 2px solid var(--ilogin-primary);
}

.ilogin-identifier-tab.active .themify {
    color: var(--ilogin-primary);
}

/* Tab Contents */
.ilogin-identifier-tab-contents {
    position: relative;
}

.ilogin-identifier-tab-content {
    display: none;
    animation: fadeInTab 0.3s ease;
}

.ilogin-identifier-tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transition for tab switching */
.ilogin-identifier-tab-content input {
    transition: border-color 0.2s ease;
}

/* Mobile responsive */
@media (max-width: 480px) {
    .ilogin-identifier-tabs {
        gap: 6px;
        padding: 3px;
    }

    .ilogin-identifier-tab {
        padding: 10px 12px;
        font-size: 14px;
    }

    .ilogin-identifier-tab .themify {
        font-size: 16px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .ilogin-dark-mode .ilogin-identifier-tabs {
        background: rgba(255, 255, 255, 0.05);
    }

    .ilogin-dark-mode .ilogin-identifier-tab.active {
        background: var(--ilogin-bg);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Add subtle highlight on focus for accessibility */
.ilogin-identifier-tab:focus-visible {
    outline: 2px solid var(--ilogin-primary);
    outline-offset: 2px;
}

/* Add subtle highlight on focus for accessibility */
.ilogin-identifier-tab:focus-visible {
    outline: 2px solid var(--ilogin-primary);
    outline-offset: 2px;
}

/* Password Match Feedback */
.ilogin-password-match-feedback {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 8px 0px 0px 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--ilogin-transition);
}

.ilogin-password-match-feedback.mismatch {
    color: var(--ilogin-error);
    padding: 0;
}

.mismatch-icon {
    font-weight: bold;
    font-size: 16px;
}

.ilogin-field.password-mismatch input {
    border-color: var(--ilogin-error);
}

.ilogin-woocommerce-toggle-content {
    margin-top: 20px;
}

/* ============================================
   Popup / Modal Overlay
   ============================================ */
.ilogin-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.ilogin-popup-overlay.ilogin-popup-active {
    display: flex;
}

.ilogin-popup-content {
    background: var(--ilogin-bg);
    border-radius: var(--ilogin-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 460px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: ilogin-popup-fade-in 0.25s ease;
}

@keyframes ilogin-popup-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.ilogin-popup-close,
button.ilogin-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--ilogin-text-light);
    cursor: pointer;
    z-index: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.ilogin-popup-close:hover {
    color: var(--ilogin-text);
}

.ilogin-popup-content.ilogin-popup-elementor-content {
    max-width: 800px;
    width: 95%;
    padding: 0;
}

.ilogin-popup-content.ilogin-popup-elementor-content:has(.elementor) {
    width: auto;
}

html[dir="rtl"] .ilogin-popup-close,
html[dir="rtl"] button.ilogin-popup-close {
    right: auto;
    left: 16px;
}

.ilogin-popup-overlay .ilogin-wrapper {
    margin: 0;
    padding: 60px 30px 30px 30px;
    height: auto;
}

.ilogin-popup-overlay .ilogin-container {
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
}

/* ============================================
   Login Button (Elementor widget)
   ============================================ */
.ilogin-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--ilogin-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.ilogin-login-button:hover {
    background-color: var(--ilogin-primary-hover);
    color: #fff;
    text-decoration: none;
}

.ilogin-login-button .ilogin-login-button-icon {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.ilogin-login-button.ilogin-icon-right {
    flex-direction: row-reverse;
}

/* ============================================
   Social Login Buttons
   ============================================ */
.ilogin-social-login {
    margin-bottom: 24px;
}

.ilogin-social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

/* Button Style: Icon Only */
.ilogin-social-btn.style-icon-only .ilogin-social-btn-text {
    display: none;
}

/* Button Style: Text Only */
.ilogin-social-btn.style-text-only .ilogin-social-btn-icon {
    display: none;
}

.ilogin-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--ilogin-radius);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--ilogin-transition);
    border: 1px solid var(--ilogin-border);
    background: var(--ilogin-bg);
    color: var(--ilogin-text);
    box-sizing: border-box;
}

.ilogin-social-btn:hover {
    background: var(--ilogin-bg-light);
    border-color: var(--ilogin-text-light);
}

.ilogin-social-btn>span {
    display: flex;
}

/* Custom image/SVG icons scale with the button like the default SVGs */
.ilogin-social-btn-icon .ilogin-social-icon-img,
.ilogin-social-btn-icon .ilogin-social-icon-svg {
    width: 1.25em;
    height: 1.25em;
    object-fit: contain;
    display: block;
}

/* Provider-specific colors */

.ilogin-social-login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0 0 0;
    color: var(--ilogin-text-light);
    font-size: 13px;
}

.ilogin-social-login-divider::before,
.ilogin-social-login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--ilogin-border);
}

.ilogin-social-login-divider span {
    padding: 0 12px;
}

/* Social Login Success Screen */
.ilogin-social-success {
    text-align: center;
    padding: 40px 20px;
}

.ilogin-social-success-icon {
    margin-bottom: 20px;
}

.ilogin-social-success-icon .themify {
    font-size: 64px;
    color: #00a32a;
    display: block;
    line-height: 1;
}

.ilogin-social-success-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px;
    color: var(--ilogin-text);
}

.ilogin-social-success-message {
    font-size: 16px;
    color: var(--ilogin-text-light);
    margin: 0 0 24px;
}

.ilogin-social-success-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.ilogin-timer-count {
    font-size: 32px;
    font-weight: 700;
    color: var(--ilogin-primary);
    min-width: 32px;
    display: inline-block;
}

.ilogin-timer-text {
    font-size: 14px;
    color: var(--ilogin-text-light);
}

.ilogin-social-success-redirect-text {
    font-size: 14px;
    color: var(--ilogin-text-light);
    margin: 0 0 24px;
}

.ilogin-social-success-btn {
    display: inline-block;
    text-decoration: none;
}

.ilogin-social-login-buttons .ilogin-social-btn {
    flex: 1;
}

/* ============================================
   Checkout Phone Verification
   ============================================ */

.ilogin-wc-phone-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ilogin-wc-phone-wrap #billing_phone {
    flex: 1;
    min-width: 0;
    padding: 0 14px !important;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.ilogin-wc-verify-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    background: var(--ilogin-primary);
    color: #fff;
    border: none;
    border-radius: var(--ilogin-radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--ilogin-transition);
}

.ilogin-wc-verify-btn:hover:not(:disabled) {
    background: var(--ilogin-primary-hover);
}

.ilogin-wc-verify-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ilogin-wc-verified-mark {
    display: none;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    background: var(--ilogin-success);
    color: #fff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.ilogin-wc-verified-mark.active {
    display: inline-block;
}

.woocommerce-billing-fields__field-wrapper .iti--allow-dropdown {
    display: flex;
    flex-direction: row-reverse;
}

.woocommerce-billing-fields__field-wrapper .iti__flag-container {
    border: var(--wc-form-border-width) solid var(--wc-form-border-color);
    border-right: 0;
}

/* OTP Verification Modal */
.ilogin-wc-verify-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ilogin-wc-verify-overlay.active {
    display: flex;
    opacity: 1;
}

.ilogin-wc-verify-modal {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.ilogin-wc-verify-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.ilogin-wc-verify-close:hover {
    color: #333;
}

.ilogin-wc-verify-modal h3 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--ilogin-text);
}

.ilogin-wc-verify-sent-to {
    font-size: 14px;
    color: var(--ilogin-text-light);
    margin: 0 0 20px;
}

.ilogin-wc-verify-otp-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-direction: row-reverse;
}

.ilogin-wc-otp-digit {
    width: 48px;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    border: 2px solid var(--ilogin-border);
    border-radius: var(--ilogin-radius);
    outline: none;
    transition: border-color 0.2s;
}

.ilogin-wc-otp-digit:focus {
    border-color: var(--ilogin-primary);
}

.ilogin-wc-otp-single {
    width: 100%;
    height: 52px;
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 8px;
    border: 2px solid var(--ilogin-border);
    border-radius: var(--ilogin-radius);
    outline: none;
    transition: border-color 0.2s;
}

.ilogin-wc-otp-single:focus {
    border-color: var(--ilogin-primary);
}

.ilogin-wc-verify-messages {
    min-height: 20px;
    margin-bottom: 8px;
}

.ilogin-wc-verify-error {
    color: var(--ilogin-error);
    font-size: 13px;
    margin: 0;
}

.ilogin-wc-verify-timer {
    font-size: 14px;
    color: var(--ilogin-text-light);
    margin-bottom: 16px;
    min-height: 20px;
}

.ilogin-wc-verify-submit {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--ilogin-primary);
    color: #fff;
    border: none;
    border-radius: var(--ilogin-radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 10px;
}

.ilogin-wc-verify-submit:hover:not(:disabled) {
    background: var(--ilogin-primary-hover);
}

.ilogin-wc-verify-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ilogin-wc-verify-resend {
    display: block;
    width: 100%;
    padding: 10px;
    background: none;
    color: var(--ilogin-primary);
    border: 1px solid var(--ilogin-primary);
    border-radius: var(--ilogin-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ilogin-transition);
}

.ilogin-wc-verify-resend:hover {
    background: var(--ilogin-primary);
    color: #fff;
}

/* Fallback buttons (Call / Bale) */
.ilogin-wc-verify-fallbacks {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ilogin-wc-verify-fallback {
    display: block;
    width: 100%;
    padding: 10px;
    background: none;
    color: var(--ilogin-primary);
    border: 1px solid var(--ilogin-border);
    border-radius: var(--ilogin-radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--ilogin-transition);
}

.ilogin-wc-verify-fallback:hover {
    border-color: var(--ilogin-primary);
    background: var(--ilogin-bg-light);
}

.ilogin-wc-verify-info {
    color: var(--ilogin-info);
    font-size: 13px;
    margin: 0;
}

/* Passkey Login Button */
.ilogin-passkey-login-section {
    margin-top: 15px;
    text-align: center;
}

.ilogin-passkey-divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
    text-align: center;
}

.ilogin-passkey-divider::before,
.ilogin-passkey-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.ilogin-passkey-divider span {
    padding: 0 15px;
    color: #666;
    font-size: 13px;
}

.ilogin-button.ilogin-passkey-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ilogin-button.ilogin-passkey-login-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.ilogin-button.ilogin-passkey-login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.ilogin-passkey-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Passkey Prompt Modal */
.ilogin-passkey-prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ilogin-passkey-prompt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.ilogin-passkey-prompt-content {
    position: relative;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ilogin-passkey-prompt-icon {
    margin-bottom: 15px;
}

.ilogin-passkey-prompt-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.ilogin-passkey-prompt-content p {
    margin: 0 0 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.ilogin-passkey-prompt-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ilogin-passkey-prompt-buttons .ilogin-button {
    width: 100%;
    padding: 12px;
    font-size: 14px;
}

/* Passkey List in Profile */
.ilogin-passkey-list {
    margin: 10px 0;
}

.ilogin-passkey-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 8px;
}

.ilogin-passkey-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ilogin-passkey-name {
    font-weight: 600;
    color: #333;
}

.ilogin-passkey-meta {
    font-size: 12px;
    color: #666;
}

/* Alerts */
.ilogin-alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ilogin-alert-error {
    background: #fce4e4;
    border: 1px solid #dc3232;
    color: #dc3232;
}

.ilogin-alert-success {
    background: #e6f7e6;
    border: 1px solid #46b450;
    color: #46b450;
}

.ilogin-alert-warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

/* RTL Support */
html[dir="rtl"] .ilogin-passkey-divider:has(span)::before {
    margin-right: 0;
    margin-left: 15px;
}

html[dir="rtl"] .ilogin-passkey-divider:has(span)::after {
    margin-left: 0;
    margin-right: 15px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .ilogin-passkey-login-btn {
        background: #2c2c2c;
        border-color: #444;
        color: #fff;
    }

    .ilogin-passkey-login-btn:hover {
        background: #3a3a3a;
    }

    .ilogin-passkey-prompt-content {
        background: #1e1e1e;
    }

    .ilogin-passkey-prompt-content h3 {
        color: #fff;
    }

    .ilogin-passkey-prompt-content p {
        color: #aaa;
    }

    .ilogin-passkey-item {
        background: #2c2c2c;
        border-color: #444;
    }

    .ilogin-passkey-name {
        color: #fff;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .ilogin-passkey-prompt-content {
        padding: 20px;
        width: 95%;
    }

    .ilogin-passkey-login-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .ilogin-passkey-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ============================================
   Background Animation â€” Base
   ============================================ */
.ilogin-has-animation {
    position: relative;
    overflow: hidden;
}

.ilogin-has-animation>*:not(.ilogin-bg-animation) {
    position: relative;
    z-index: 1;
}

.ilogin-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* ============================================
   Background Animation â€” Circles
   ============================================ */
.ilogin-circles {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ilogin-circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: var(--ilogin-shape-color-2);
    animation: ilogin-circles-float 25s linear infinite;
    bottom: calc(-150px - 40vh);
}

.ilogin-circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
    animation-duration: 20s;
    border-radius: 50%;
    border-top-left-radius: 0 !important;
    background: var(--ilogin-shape-color-1);
}

.ilogin-circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
    animation-duration: 25s;
    border-radius: 50%;
    border-top-left-radius: 0 !important;
    background: var(--ilogin-shape-color-2);
}

.ilogin-circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
    animation-duration: 20s;
    border-radius: 50%;
    border-top-left-radius: 0 !important;
    background: var(--ilogin-shape-color-1);
}

.ilogin-circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 15s;
    border-radius: 50%;
    border-top-left-radius: 0 !important;
    background: var(--ilogin-shape-color-3);
}

.ilogin-circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
    animation-duration: 20s;
    border-radius: 50%;
    border-top-left-radius: 0 !important;
    background: var(--ilogin-shape-color-2);
}

.ilogin-circles li:nth-child(6) {
    left: 75%;
    width: 90px;
    height: 90px;
    animation-delay: 0s;
    animation-duration: 25s;
    border-radius: 50%;
    border-top-left-radius: 0 !important;
    background: var(--ilogin-shape-color-3);
}

.ilogin-circles li:nth-child(7) {
    left: 35%;
    width: 50px;
    height: 50px;
    animation-delay: 0s;
    animation-duration: 30s;
    border-radius: 50%;
    border-top-left-radius: 0 !important;
    background: var(--ilogin-shape-color-1);
}

.ilogin-circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 0s;
    animation-duration: 35s;
    border-radius: 50%;
    border-top-left-radius: 0 !important;
    background: var(--ilogin-shape-color-3);
}

.ilogin-circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 0s;
    animation-duration: 40s;
    border-radius: 50%;
    border-top-left-radius: 0 !important;
    background: var(--ilogin-shape-color-1);
}

.ilogin-circles li:nth-child(10) {
    left: 85%;
    width: 50px;
    height: 50px;
    animation-delay: 0s;
    animation-duration: 45s;
    border-radius: 50%;
    border-top-left-radius: 0 !important;
    background: var(--ilogin-shape-color-2);
}

@keyframes ilogin-circles-float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    50% {
        transform: translateY(-60vh) rotate(360deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-120vh) rotate(720deg);
        opacity: 0;
    }
}

/* ============================================
   Background Animation â€” Bubbles
   ============================================ */
.ilogin-bubbles {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ilogin-bubbles span {
    position: absolute;
    display: block;
    bottom: -80px;
    width: 40px;
    height: 40px;
    background: var(--ilogin-shape-color-2);
    border-radius: 50%;
    animation: ilogin-bubbles-rise 25s linear infinite;
}

.ilogin-bubbles span:nth-child(1) {
    left: 10%;
    width: 30px;
    height: 30px;
    animation-delay: 0s;
    animation-duration: 20s;
    background: var(--ilogin-shape-color-1);
}

.ilogin-bubbles span:nth-child(2) {
    left: 25%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 25s;
    background: var(--ilogin-shape-color-3);
}

.ilogin-bubbles span:nth-child(3) {
    left: 40%;
    width: 50px;
    height: 50px;
    animation-delay: 4s;
    animation-duration: 18s;
    background: var(--ilogin-shape-color-2);
}

.ilogin-bubbles span:nth-child(4) {
    left: 55%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
    animation-duration: 22s;
    background: var(--ilogin-shape-color-1);
}

.ilogin-bubbles span:nth-child(5) {
    left: 70%;
    width: 60px;
    height: 60px;
    animation-delay: 3s;
    animation-duration: 30s;
    background: var(--ilogin-shape-color-3);
}

.ilogin-bubbles span:nth-child(6) {
    left: 85%;
    width: 25px;
    height: 25px;
    animation-delay: 5s;
    animation-duration: 20s;
    background: var(--ilogin-shape-color-2);
}

.ilogin-bubbles span:nth-child(7) {
    left: 5%;
    width: 45px;
    height: 45px;
    animation-delay: 7s;
    animation-duration: 35s;
    background: var(--ilogin-shape-color-1);
}

.ilogin-bubbles span:nth-child(8) {
    left: 50%;
    width: 18px;
    height: 18px;
    animation-delay: 1s;
    animation-duration: 28s;
    background: var(--ilogin-shape-color-3);
}

.ilogin-bubbles span:nth-child(9) {
    left: 35%;
    width: 35px;
    height: 35px;
    animation-delay: 6s;
    animation-duration: 24s;
    background: var(--ilogin-shape-color-2);
}

.ilogin-bubbles span:nth-child(10) {
    left: 90%;
    width: 12px;
    height: 12px;
    animation-delay: 8s;
    animation-duration: 32s;
    background: var(--ilogin-shape-color-1);
}

@keyframes ilogin-bubbles-rise {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    50% {
        transform: translateY(-50vh) scale(1.2);
        opacity: 0.6;
    }

    100% {
        transform: translateY(-110vh) scale(0.8);
        opacity: 0;
    }
}

/* ============================================
   Background Animation â€” Snow
   ============================================ */
.ilogin-snow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ilogin-snow span {
    position: absolute;
    top: -20px;
    width: 8px;
    height: 8px;
    background: var(--ilogin-shape-color-1);
    border-radius: 50%;
    animation: ilogin-snow-fall linear infinite;
}

.ilogin-snow span:nth-child(1) {
    left: 5%;
    width: 10px;
    height: 10px;
    animation-duration: 12s;
    animation-delay: 0s;
    background: var(--ilogin-shape-color-2);
}

.ilogin-snow span:nth-child(2) {
    left: 15%;
    width: 6px;
    height: 6px;
    animation-duration: 16s;
    animation-delay: 2s;
    background: var(--ilogin-shape-color-1);
}

.ilogin-snow span:nth-child(3) {
    left: 25%;
    width: 12px;
    height: 12px;
    animation-duration: 10s;
    animation-delay: 4s;
    background: var(--ilogin-shape-color-3);
}

.ilogin-snow span:nth-child(4) {
    left: 35%;
    width: 5px;
    height: 5px;
    animation-duration: 18s;
    animation-delay: 1s;
    background: var(--ilogin-shape-color-2);
}

.ilogin-snow span:nth-child(5) {
    left: 45%;
    width: 8px;
    height: 8px;
    animation-duration: 14s;
    animation-delay: 3s;
    background: var(--ilogin-shape-color-1);
}

.ilogin-snow span:nth-child(6) {
    left: 55%;
    width: 14px;
    height: 14px;
    animation-duration: 11s;
    animation-delay: 5s;
    background: var(--ilogin-shape-color-3);
}

.ilogin-snow span:nth-child(7) {
    left: 65%;
    width: 4px;
    height: 4px;
    animation-duration: 20s;
    animation-delay: 0.5s;
    background: var(--ilogin-shape-color-2);
}

.ilogin-snow span:nth-child(8) {
    left: 75%;
    width: 9px;
    height: 9px;
    animation-duration: 13s;
    animation-delay: 6s;
    background: var(--ilogin-shape-color-1);
}

.ilogin-snow span:nth-child(9) {
    left: 85%;
    width: 7px;
    height: 7px;
    animation-duration: 17s;
    animation-delay: 2.5s;
    background: var(--ilogin-shape-color-3);
}

.ilogin-snow span:nth-child(10) {
    left: 95%;
    width: 11px;
    height: 11px;
    animation-duration: 15s;
    animation-delay: 7s;
    background: var(--ilogin-shape-color-2);
}

.ilogin-snow span:nth-child(11) {
    left: 8%;
    width: 6px;
    height: 6px;
    animation-duration: 19s;
    animation-delay: 8s;
    background: var(--ilogin-shape-color-1);
}

.ilogin-snow span:nth-child(12) {
    left: 30%;
    width: 10px;
    height: 10px;
    animation-duration: 12s;
    animation-delay: 3.5s;
    background: var(--ilogin-shape-color-3);
}

.ilogin-snow span:nth-child(13) {
    left: 50%;
    width: 5px;
    height: 5px;
    animation-duration: 22s;
    animation-delay: 9s;
    background: var(--ilogin-shape-color-2);
}

.ilogin-snow span:nth-child(14) {
    left: 70%;
    width: 8px;
    height: 8px;
    animation-duration: 14s;
    animation-delay: 4.5s;
    background: var(--ilogin-shape-color-1);
}

.ilogin-snow span:nth-child(15) {
    left: 90%;
    width: 12px;
    height: 12px;
    animation-duration: 16s;
    animation-delay: 1.5s;
    background: var(--ilogin-shape-color-3);
}

@keyframes ilogin-snow-fall {
    0% {
        transform: translateY(-10vh) translateX(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(110vh) translateX(80px) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   Background Animation â€” Squares
   ============================================ */
.ilogin-squares {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ilogin-squares span {
    position: absolute;
    display: block;
    bottom: -60px;
    width: 30px;
    height: 30px;
    background: var(--ilogin-shape-color-2);
    animation: ilogin-squares-float 20s linear infinite;
}

.ilogin-squares span:nth-child(1) {
    left: 8%;
    width: 40px;
    height: 40px;
    animation-delay: 0s;
    animation-duration: 18s;
    background: var(--ilogin-shape-color-1);
    border-radius: 4px;
    transform: rotate(15deg);
}

.ilogin-squares span:nth-child(2) {
    left: 22%;
    width: 20px;
    height: 20px;
    animation-delay: 3s;
    animation-duration: 22s;
    background: var(--ilogin-shape-color-2);
    border-radius: 3px;
    transform: rotate(-20deg);
}

.ilogin-squares span:nth-child(3) {
    left: 38%;
    width: 50px;
    height: 50px;
    animation-delay: 1s;
    animation-duration: 16s;
    background: var(--ilogin-shape-color-3);
    border-radius: 6px;
    transform: rotate(45deg);
}

.ilogin-squares span:nth-child(4) {
    left: 52%;
    width: 15px;
    height: 15px;
    animation-delay: 5s;
    animation-duration: 25s;
    background: var(--ilogin-shape-color-1);
    border-radius: 2px;
    transform: rotate(-10deg);
}

.ilogin-squares span:nth-child(5) {
    left: 68%;
    width: 35px;
    height: 35px;
    animation-delay: 2s;
    animation-duration: 20s;
    background: var(--ilogin-shape-color-2);
    border-radius: 5px;
    transform: rotate(30deg);
}

.ilogin-squares span:nth-child(6) {
    left: 80%;
    width: 25px;
    height: 25px;
    animation-delay: 4s;
    animation-duration: 28s;
    background: var(--ilogin-shape-color-3);
    border-radius: 3px;
    transform: rotate(-35deg);
}

.ilogin-squares span:nth-child(7) {
    left: 15%;
    width: 18px;
    height: 18px;
    animation-delay: 7s;
    animation-duration: 30s;
    background: var(--ilogin-shape-color-1);
    border-radius: 2px;
    transform: rotate(50deg);
}

.ilogin-squares span:nth-child(8) {
    left: 45%;
    width: 45px;
    height: 45px;
    animation-delay: 6s;
    animation-duration: 24s;
    background: var(--ilogin-shape-color-3);
    border-radius: 8px;
    transform: rotate(-25deg);
}

.ilogin-squares span:nth-child(9) {
    left: 72%;
    width: 12px;
    height: 12px;
    animation-delay: 8s;
    animation-duration: 32s;
    background: var(--ilogin-shape-color-2);
    border-radius: 2px;
    transform: rotate(10deg);
}

.ilogin-squares span:nth-child(10) {
    left: 92%;
    width: 28px;
    height: 28px;
    animation-delay: 1.5s;
    animation-duration: 19s;
    background: var(--ilogin-shape-color-1);
    border-radius: 4px;
    transform: rotate(-45deg);
}

@keyframes ilogin-squares-float {
    0% {
        transform: translateY(0) rotate(var(--sq-rotate, 0deg));
        opacity: 0;
    }

    15% {
        opacity: 0.8;
    }

    50% {
        transform: translateY(-55vh) rotate(calc(var(--sq-rotate, 0deg) + 180deg));
        opacity: 1;
    }

    100% {
        transform: translateY(-115vh) rotate(calc(var(--sq-rotate, 0deg) + 360deg));
        opacity: 0;
    }
}

/* ============================================
   Background Animation â€” Triangles
   ============================================ */
.ilogin-triangles {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ilogin-triangles span {
    position: absolute;
    display: block;
    bottom: -80px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 26px solid var(--ilogin-shape-color-2);
    animation: ilogin-triangles-float 22s linear infinite;
}

.ilogin-triangles span:nth-child(1) {
    left: 10%;
    border-left-width: 20px;
    border-right-width: 20px;
    border-bottom-width: 35px;
    border-bottom-color: var(--ilogin-shape-color-1);
    animation-delay: 0s;
    animation-duration: 18s;
}

.ilogin-triangles span:nth-child(2) {
    left: 28%;
    border-left-width: 10px;
    border-right-width: 10px;
    border-bottom-width: 17px;
    border-bottom-color: var(--ilogin-shape-color-3);
    animation-delay: 4s;
    animation-duration: 24s;
}

.ilogin-triangles span:nth-child(3) {
    left: 45%;
    border-left-width: 25px;
    border-right-width: 25px;
    border-bottom-width: 43px;
    border-bottom-color: var(--ilogin-shape-color-2);
    animation-delay: 1s;
    animation-duration: 20s;
}

.ilogin-triangles span:nth-child(4) {
    left: 62%;
    border-left-width: 12px;
    border-right-width: 12px;
    border-bottom-width: 21px;
    border-bottom-color: var(--ilogin-shape-color-1);
    animation-delay: 6s;
    animation-duration: 26s;
}

.ilogin-triangles span:nth-child(5) {
    left: 78%;
    border-left-width: 18px;
    border-right-width: 18px;
    border-bottom-width: 31px;
    border-bottom-color: var(--ilogin-shape-color-3);
    animation-delay: 3s;
    animation-duration: 16s;
}

.ilogin-triangles span:nth-child(6) {
    left: 5%;
    border-left-width: 8px;
    border-right-width: 8px;
    border-bottom-width: 14px;
    border-bottom-color: var(--ilogin-shape-color-2);
    animation-delay: 8s;
    animation-duration: 30s;
}

.ilogin-triangles span:nth-child(7) {
    left: 55%;
    border-left-width: 14px;
    border-right-width: 14px;
    border-bottom-width: 24px;
    border-bottom-color: var(--ilogin-shape-color-1);
    animation-delay: 5s;
    animation-duration: 28s;
}

.ilogin-triangles span:nth-child(8) {
    left: 88%;
    border-left-width: 22px;
    border-right-width: 22px;
    border-bottom-width: 38px;
    border-bottom-color: var(--ilogin-shape-color-3);
    animation-delay: 2s;
    animation-duration: 22s;
}

@keyframes ilogin-triangles-float {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 0.9;
    }

    50% {
        transform: translateY(-50vh) rotate(180deg) scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: translateY(-110vh) rotate(360deg) scale(0.8);
        opacity: 0;
    }
}

/* ============================================
   Background Animation â€” Mixed
   ============================================ */
.ilogin-mixed {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Circle shapes in mixed */
.ilogin-mixed span:nth-child(1),
.ilogin-mixed span:nth-child(5),
.ilogin-mixed span:nth-child(9) {
    position: absolute;
    display: block;
    bottom: -80px;
    border-radius: 50%;
    background: var(--ilogin-shape-color-2);
    animation: ilogin-mixed-float 20s linear infinite;
}

.ilogin-mixed span:nth-child(1) {
    left: 8%;
    width: 50px;
    height: 50px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.ilogin-mixed span:nth-child(5) {
    left: 55%;
    width: 25px;
    height: 25px;
    animation-delay: 6s;
    animation-duration: 24s;
    background: var(--ilogin-shape-color-3);
}

.ilogin-mixed span:nth-child(9) {
    left: 85%;
    width: 35px;
    height: 35px;
    animation-delay: 3s;
    animation-duration: 28s;
    background: var(--ilogin-shape-color-1);
}

/* Square shapes in mixed */
.ilogin-mixed span:nth-child(2),
.ilogin-mixed span:nth-child(6),
.ilogin-mixed span:nth-child(10) {
    position: absolute;
    display: block;
    bottom: -60px;
    border-radius: 4px;
    background: var(--ilogin-shape-color-1);
    animation: ilogin-mixed-float 22s linear infinite;
}

.ilogin-mixed span:nth-child(2) {
    left: 25%;
    width: 30px;
    height: 30px;
    animation-delay: 2s;
    animation-duration: 20s;
    transform: rotate(20deg);
}

.ilogin-mixed span:nth-child(6) {
    left: 68%;
    width: 18px;
    height: 18px;
    animation-delay: 8s;
    animation-duration: 26s;
    transform: rotate(-30deg);
    background: var(--ilogin-shape-color-3);
}

.ilogin-mixed span:nth-child(10) {
    left: 42%;
    width: 40px;
    height: 40px;
    animation-delay: 5s;
    animation-duration: 30s;
    transform: rotate(45deg);
    background: var(--ilogin-shape-color-2);
}

/* Triangle shapes in mixed */
.ilogin-mixed span:nth-child(3),
.ilogin-mixed span:nth-child(7),
.ilogin-mixed span:nth-child(11) {
    position: absolute;
    display: block;
    bottom: -80px;
    width: 0;
    height: 0;
    background: transparent;
    animation: ilogin-mixed-float 24s linear infinite;
}

.ilogin-mixed span:nth-child(3) {
    left: 40%;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 21px solid var(--ilogin-shape-color-1);
    animation-delay: 1s;
    animation-duration: 19s;
}

.ilogin-mixed span:nth-child(7) {
    left: 75%;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 31px solid var(--ilogin-shape-color-2);
    animation-delay: 7s;
    animation-duration: 25s;
}

.ilogin-mixed span:nth-child(11) {
    left: 15%;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 17px solid var(--ilogin-shape-color-3);
    animation-delay: 4s;
    animation-duration: 22s;
}

/* Extra mixed shapes (small dots) */
.ilogin-mixed span:nth-child(4),
.ilogin-mixed span:nth-child(8),
.ilogin-mixed span:nth-child(12) {
    position: absolute;
    display: block;
    bottom: -50px;
    border-radius: 50%;
    background: var(--ilogin-shape-color-3);
    animation: ilogin-mixed-float 18s linear infinite;
}

.ilogin-mixed span:nth-child(4) {
    left: 60%;
    width: 12px;
    height: 12px;
    animation-delay: 3.5s;
    animation-duration: 16s;
}

.ilogin-mixed span:nth-child(8) {
    left: 32%;
    width: 8px;
    height: 8px;
    animation-delay: 9s;
    animation-duration: 28s;
    background: var(--ilogin-shape-color-1);
}

.ilogin-mixed span:nth-child(12) {
    left: 92%;
    width: 15px;
    height: 15px;
    animation-delay: 6.5s;
    animation-duration: 20s;
    background: var(--ilogin-shape-color-2);
}

@keyframes ilogin-mixed-float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.85;
    }

    50% {
        transform: translateY(-55vh) rotate(200deg);
        opacity: 0.7;
    }

    100% {
        transform: translateY(-115vh) rotate(400deg);
        opacity: 0;
    }
}

/* ============================================
   Background Animation â€” Waves
   ============================================ */
.ilogin-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px;
    min-height: 100px;
    max-height: 150px;
}

.ilogin-parallax>use {
    animation: ilogin-move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.ilogin-parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.ilogin-parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.ilogin-parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.ilogin-parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes ilogin-move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

@media (max-width: 768px) {
    .ilogin-waves {
        height: 40px;
        min-height: 40px;
    }
}

.ilogin-tab-content .widefat {
    border-radius: 8px;
    border-color: #f2f2f2;
}

.ilogin-tab-content .widefat td,
.ilogin-tab-content .widefat th {
    padding: 10px !important;
}

/* ============================================
   SweetAlert2 Toast Custom Styles
   ============================================
   JS sets 3 CSS vars on the .ilogin-toast popup:
     --ilogin-toast-bg   = background
     --ilogin-toast-text = title/close/html text
     --ilogin-toast-icon = icon color
   ============================================ */

/* Base: all colors via CSS vars â€” font inherited from Typography settings (or system fallback) */
.ilogin-toast.swal2-popup {
    font-family: inherit;
    background-color: var(--ilogin-toast-bg, #fff) !important;
    color: var(--ilogin-toast-text, #333) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* Title â€” size/line-height overridden by Typography CSS when set */
.ilogin-toast .swal2-title,
.ilogin-toast .swal2-title a {
    color: var(--ilogin-toast-text, #333) !important;
    margin: 0 !important;
    height: 40px;
    display: flex !important;
    align-items: center;
    font-size: 14px !important;
    line-height: 20px;
}

/* Close */
.ilogin-toast .swal2-close {
    color: var(--ilogin-toast-text, #333) !important;
}

.ilogin-toast .swal2-close:hover {
    color: inherit;
    opacity: 0.7;
}

/* HTML */
.ilogin-toast .swal2-html-container {
    color: var(--ilogin-toast-text, #333) !important;
}

.ilogin-toast .swal2-html-container a {
    color: var(--ilogin-toast-text, #333) !important;
    text-decoration: underline;
}

.ilogin-toast .swal2-html-container a:hover {
    opacity: 0.85;
}

/* Success icon â€” override SweetAlert2's inline iconColor styles */
.ilogin-toast .swal2-icon {
    color: var(--ilogin-toast-icon, #ffffff) !important;
    border-color: var(--ilogin-toast-icon, #ffffff) !important;
    margin: 0 0 0 6px !important;
}

.ilogin-toast .swal2-success-ring {
    border-color: var(--ilogin-toast-icon, #ffffff) !important;
}

.ilogin-toast .swal2-success-line-tip,
.ilogin-toast .swal2-success-line-long {
    background-color: var(--ilogin-toast-icon, #ffffff) !important;
}

/* These 3 mask the ring â€” must blend with popup background, not icon color */
.ilogin-toast .swal2-success-circular-line-left,
.ilogin-toast .swal2-success-circular-line-right,
.ilogin-toast .swal2-success-fix {
    background-color: var(--ilogin-toast-bg, #fff) !important;
}

/* Error icon marks */
.ilogin-toast .swal2-x-mark-line-left,
.ilogin-toast .swal2-x-mark-line-right {
    background-color: var(--ilogin-toast-icon, #fff) !important;
}

/* Info icon â€” circle + i marks use icon color */
.ilogin-toast .swal2-icon.swal2-info {
    color: var(--ilogin-toast-icon, #fff) !important;
    border-color: var(--ilogin-toast-icon, #fff) !important;
}

/* Progress bar */
.ilogin-toast .swal2-timer-progress-bar {
    opacity: 0.6;
}