/* App-specific overrides for iofrm auth (login24 / theme28) */

/* Dark black surfaces (overrides theme28 brown #0e0905) */
html:has(body.iofrm-auth),
body.iofrm-auth {
    background-color: #000 !important;
}

.iofrm-auth.form-body,
.iofrm-auth .form-body,
.iofrm-auth .form-holder,
.iofrm-auth .form-holder .form-content,
.iofrm-auth .iofrm-layout {
    background-color: #000 !important;
}

.iofrm-auth .img-holder,
.iofrm-auth .iofrm-img-holder {
    background-color: #000 !important;
}

.iofrm-auth.form-body,
.iofrm-auth .form-body {
    position: relative;
}

/* ---- Brand (app logo + name) ---- */
.iofrm-auth .iofrm-brand {
    display: flex;
    align-items: center;
}

.iofrm-auth .iofrm-brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.iofrm-auth .iofrm-brand-link {
    color: #fff;
}

.iofrm-auth .iofrm-brand-logo,
.iofrm-auth .app-logo.iofrm-brand-logo {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: block;
}

.iofrm-auth .iofrm-brand-name {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

/* ---- Toolbar ---- */
.iofrm-auth .iofrm-auth-toolbar {
    position: absolute;
    z-index: 1100;
    top: 50px;
    left: 50px;
    right: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    pointer-events: none;
}

.iofrm-auth .iofrm-auth-toolbar .iofrm-brand {
    pointer-events: auto;
    flex-shrink: 0;
}

.iofrm-auth .iofrm-auth-toolbar .iofrm-brand-logo,
.iofrm-auth .iofrm-auth-toolbar .app-logo {
    display: none !important;
}

.iofrm-auth .iofrm-auth-toolbar .iofrm-brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.iofrm-auth .form-holder .iofrm-form-topbar {
    display: none !important;
}

/* ---- Shared left side panel (welcome + auth) ---- */
.iofrm-auth .iofrm-img-holder {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
}

.iofrm-auth .iofrm-img-holder .bg {
    opacity: 0.32;
}

.iofrm-auth .iofrm-img-holder .bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.35) 42%,
        rgba(0, 0, 0, 0.92) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.iofrm-auth .iofrm-side-panel-holder {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 100% !important;
    transform: none !important;
    -webkit-transform: none !important;
    text-align: left !important;
    z-index: 2;
    padding: 0 !important;
    margin: 0 !important;
}

.iofrm-auth .iofrm-side-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    min-height: 100%;
    height: 100%;
    padding: 6.5rem 2.75rem 2.75rem;
    box-sizing: border-box;
}

.iofrm-auth .iofrm-side-panel--no-hero {
    justify-content: flex-end;
    gap: 0;
}

/* APP_TITLE from .env — top of left panel */
.iofrm-auth .iofrm-side-panel__hero {
    flex-shrink: 0;
    max-width: 22rem;
}

.iofrm-auth .iofrm-side-panel__app-title {
    margin: 0;
    padding: 0 0 0 1rem;
    border-left: 3px solid #29a4ff;
    font-size: clamp(1.125rem, 1.85vw, 1.5rem);
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.015em;
    color: rgba(255, 255, 255, 0.92);
}

/* Typing headline + features — bottom of panel */
.iofrm-auth .iofrm-side-panel__bottom {
    flex-shrink: 0;
    max-width: 21rem;
    margin-top: auto;
}

.iofrm-auth .iofrm-side-panel__title {
    margin: 0 0 1rem;
    font-size: clamp(1.375rem, 2.2vw, 1.875rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.028em;
    color: #fff;
}

.iofrm-auth .iofrm-side-panel__title-static {
    display: block;
    font-size: 0.875em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.25rem;
}

.iofrm-auth .iofrm-side-panel__title-dynamic {
    display: block;
    min-height: 1.2em;
    color: #fff;
}

.iofrm-auth .iofrm-typing {
    font-weight: 600;
    color: #fff;
}

.iofrm-auth .iofrm-typing-cursor {
    display: inline-block;
    width: 2px;
    height: 0.88em;
    margin-left: 3px;
    vertical-align: -0.06em;
    background: #29a4ff;
    animation: iofrm-cursor-blink 1s step-end infinite;
}

@keyframes iofrm-cursor-blink {
    50% {
        opacity: 0;
    }
}

.iofrm-auth .iofrm-side-panel__lead {
    margin: 0 0 1.125rem;
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.52);
}

.iofrm-auth .iofrm-side-panel__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.iofrm-auth .iofrm-side-panel__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.72);
}

.iofrm-auth .iofrm-side-panel__list li::before {
    content: '';
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    margin-top: 0.1rem;
    background-color: rgba(41, 164, 255, 0.2);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2329a4ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.65rem;
    border-radius: 50%;
}

@media (prefers-reduced-motion: reduce) {
    .iofrm-auth .iofrm-typing-cursor {
        animation: none;
        opacity: 0.6;
    }
}

.iofrm-auth .iofrm-layout {
    position: relative;
    z-index: 1;
}

.iofrm-auth .iofrm-auth-toolbar-actions,
.iofrm-auth .iofrm-auth-toolbar a {
    pointer-events: auto;
}

.iofrm-auth .iofrm-auth-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.iofrm-auth .iofrm-auth-toolbar-actions > a {
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

.iofrm-auth .iofrm-auth-toolbar-actions > a:hover {
    opacity: 0.85;
}

.iofrm-auth .iofrm-lang-dropdown {
    position: relative;
    color: #fff;
    font-size: 14px;
}

.iofrm-auth .iofrm-lang-dropdown summary {
    cursor: pointer;
    list-style: none;
    color: #fff;
}

.iofrm-auth .iofrm-lang-dropdown summary::-webkit-details-marker {
    display: none;
}

.iofrm-auth .iofrm-lang-dropdown ul {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 10rem;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    z-index: 1002;
}

.iofrm-auth .iofrm-lang-dropdown ul a {
    display: block;
    padding: 0.4rem 1rem;
    color: #fff;
    text-decoration: none;
}

.iofrm-auth .iofrm-lang-dropdown ul a:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ---- Form panel width ---- */
.iofrm-auth .form-items.iofrm-form-wide {
    max-width: 720px;
    width: 100%;
}

.iofrm-auth .form-holder.iofrm-form-scroll .form-content {
    overflow-y: auto;
    max-height: 100vh;
    padding-top: 100px;
    padding-bottom: 40px;
}

/* Page title + login/register tabs */
.iofrm-auth .iofrm-page-header {
    margin-bottom: 1rem;
}

.iofrm-auth .iofrm-page-header h3,
.iofrm-auth .iofrm-page-header p,
.iofrm-auth .iofrm-page-header .page-links {
    position: relative;
    z-index: 2;
}

.iofrm-auth .iofrm-page-header .page-links {
    margin-bottom: 0;
}

/* Remember me: use native iofrm checkbox+label styling (input must be immediately before label) */
.iofrm-auth .form-items form > input[type="checkbox"] + label {
    margin-bottom: 1rem;
    font-weight: 400 !important;
    font-size: 14px !important;
}

/* ---- Validation (Laravel @error + jQuery Validate label.error) ---- */
.iofrm-auth label.error,
.iofrm-auth .help-block strong,
.iofrm-auth .text-danger {
    display: block;
    color: #fca5a5 !important;
    font-size: 13px;
    font-weight: 500;
    margin: 0.35rem 0 0.65rem;
    padding: 0;
    background: none !important;
    border: none !important;
}

.iofrm-auth .form-control.error,
.iofrm-auth .form-control.is-invalid,
.iofrm-auth .has-error .form-control {
    border: 1px solid rgba(248, 113, 113, 0.85) !important;
    background-color: rgba(220, 38, 38, 0.12) !important;
}

.iofrm-auth .iofrm-alert {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 6px;
    font-size: 14px;
}

.iofrm-auth .iofrm-alert-danger {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

.iofrm-auth .iofrm-alert-success {
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(74, 222, 128, 0.4);
    color: #bbf7d0;
}

.iofrm-auth .iofrm-error-list {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
}

.iofrm-auth .g-recaptcha {
    margin-bottom: 1rem;
    transform-origin: left top;
}

.iofrm-auth .iofrm-demo-panel {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.iofrm-auth .iofrm-demo-panel p {
    font-size: 12px;
    margin-bottom: 0.75rem;
    opacity: 0.85;
    color: #fff;
}

.iofrm-auth .iofrm-demo-panel .demo-login {
    display: inline-block;
    margin: 0 0.35rem 0.35rem 0;
    padding: 0.35rem 0.65rem;
    font-size: 11px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-decoration: none;
}

.iofrm-auth .iofrm-demo-panel .demo-login:hover {
    background: rgba(41, 164, 255, 0.35);
}

/* ---- Registration (iofrm stacked fields, same as login) ---- */
.iofrm-auth .iofrm-register-form {
    width: 100%;
}

/* Hide raw multi-step markup until jQuery Steps adds .wizard (avoids full-width flash) */
.iofrm-auth .iofrm-register-form.iofrm-register-pending #business_register_form {
    visibility: hidden;
}

.iofrm-auth .iofrm-register-form.iofrm-register-ready #business_register_form {
    visibility: visible;
}

.iofrm-auth .iofrm-register-form fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 0.55rem;
}

.iofrm-auth .iofrm-register-form .iofrm-field-full {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    .iofrm-auth .iofrm-register-form fieldset {
        grid-template-columns: 1fr;
    }
}

.iofrm-auth .iofrm-register-form legend.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.iofrm-auth .iofrm-register-form h3 {
    display: none;
}

.iofrm-auth .iofrm-register-form .terms_condition {
    color: #29a4ff;
    text-decoration: none;
}

.iofrm-auth .iofrm-register-form .terms_condition:hover {
    text-decoration: underline;
}

.iofrm-auth .iofrm-register-form .iofrm-field {
    margin-bottom: 0;
    min-width: 0;
}

.iofrm-auth .iofrm-register-form .iofrm-field > label {
    display: block;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1.25;
}

/* iofrm-style adds margin-bottom on every input; avoid double gap with .iofrm-field */
.iofrm-auth .iofrm-register-form .form-content input,
.iofrm-auth .iofrm-register-form .form-content textarea,
.iofrm-auth .iofrm-register-form .form-content select.form-control {
    margin-bottom: 0 !important;
}

.iofrm-auth .iofrm-register-form .iofrm-required {
    color: #fca5a5;
}

.iofrm-auth .iofrm-register-form .iofrm-field .form-control {
    margin-bottom: 0;
}

.iofrm-auth .iofrm-register-form .iofrm-field-checkbox {
    margin-bottom: 0.55rem;
}

.iofrm-auth .iofrm-register-form .iofrm-field-checkbox input[type="checkbox"] + label {
    margin-bottom: 0;
    font-weight: 400 !important;
    font-size: 14px !important;
}

.iofrm-auth .iofrm-file-upload {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.iofrm-auth .iofrm-file-upload .form-control[type="file"] {
    width: 100%;
    padding: 10px 14px;
    color: #e5e5e5;
    cursor: pointer;
    margin-bottom: 0;
}

.iofrm-auth .iofrm-file-upload .form-control[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 6px 12px;
    border: 0;
    border-radius: 4px;
    background: #29a4ff;
    color: #fff;
    cursor: pointer;
}

.iofrm-auth .iofrm-file-name {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
    word-break: break-all;
}

.iofrm-auth .iofrm-file-remove {
    background: none;
    border: 0;
    padding: 0;
    color: #29a4ff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

.iofrm-auth .iofrm-file-remove:hover {
    color: #5cbcff;
}

.iofrm-auth .iofrm-register-form .select2-container {
    width: 100% !important;
    margin-bottom: 0;
}

.iofrm-auth .iofrm-register-form #recaptcha-container {
    margin-bottom: 0;
}

/* jQuery Steps — full form width, circles, connector lines, digits 1 2 3 (no period; see titleTemplate in login.js) */
.iofrm-auth .iofrm-register-form .wizard,
.iofrm-auth .iofrm-register-form .wizard > .steps,
.iofrm-auth .iofrm-register-form .wizard > .steps > ul {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.iofrm-auth .wizard {
    width: 100%;
    max-width: 100%;
    overflow: visible !important;
}

.iofrm-auth .wizard > .steps {
    display: block !important;
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
    overflow: visible !important;
    min-height: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}

.iofrm-auth .wizard > .steps > ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    list-style: none !important;
    list-style-type: none !important;
    box-sizing: border-box;
}

.iofrm-auth .wizard > .steps > ul > li {
    float: none;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    position: relative;
    text-align: center;
    list-style: none !important;
    list-style-type: none !important;
}

.iofrm-auth .wizard > .steps > ul > li::marker {
    content: none;
}

/* Connector line between step circles */
.iofrm-auth .wizard > .steps > ul > li:not(:last-child)::after {
    display: block;
    content: "";
    position: absolute;
    top: 18px;
    left: calc(50% + 22px);
    right: calc(-50% + 22px);
    height: 2px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 1px;
    z-index: 0;
    transition: background 0.25s ease;
}

.iofrm-auth .wizard > .steps > ul > li.done:not(:last-child)::after {
    background: #29a4ff;
}

.iofrm-auth .wizard > .steps a,
.iofrm-auth .wizard > .steps a:hover,
.iofrm-auth .wizard > .steps a:active {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0 0.35rem 0.15rem;
    text-decoration: none !important;
    background: transparent !important;
    border-radius: 0;
    cursor: default;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: inherit;
}

.iofrm-auth .wizard > .steps .number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.iofrm-auth .wizard > .steps .iofrm-step-label {
    display: block;
    max-width: 100%;
    padding: 0 0.15rem;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.25s ease;
}

.iofrm-auth .wizard > .steps .disabled a .number {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.38);
}

.iofrm-auth .wizard > .steps .current a .number {
    border-color: #29a4ff;
    background: #29a4ff;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(41, 164, 255, 0.22);
}

.iofrm-auth .wizard > .steps .current a .iofrm-step-label {
    color: #fff;
    font-weight: 600;
}

.iofrm-auth .wizard > .steps .done a .number {
    border-color: #29a4ff;
    background: #29a4ff;
    color: transparent;
    font-size: 0;
}

.iofrm-auth .wizard > .steps .done a .number::before {
    content: "\2713";
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    color: #fff;
}

.iofrm-auth .wizard > .steps .done a .number::after {
    content: none !important;
}

.iofrm-auth .wizard > .steps .done a .iofrm-step-label {
    color: rgba(255, 255, 255, 0.82);
}

.iofrm-auth .wizard > .steps .disabled a,
.iofrm-auth .wizard > .steps .disabled a:hover,
.iofrm-auth .wizard > .steps .disabled a:active {
    color: rgba(255, 255, 255, 0.45) !important;
}

.iofrm-auth .wizard > .steps .current a,
.iofrm-auth .wizard > .steps .current a:hover,
.iofrm-auth .wizard > .steps .current a:active {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* jQuery Steps accessibility text — keep out of layout */
.iofrm-auth .wizard > .steps .current-info {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.iofrm-auth .wizard > .content {
    background: transparent !important;
    border: 0 !important;
    margin: 0 0 1rem;
    min-height: 0;
}

.iofrm-auth .wizard > .content > .body {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    padding: 0 !important;
    float: none !important;
}

.iofrm-auth .wizard > .actions {
    margin-top: 0.5rem;
}

.iofrm-auth .wizard > .actions > ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.iofrm-auth .wizard > .actions > ul > li {
    list-style: none;
}

.iofrm-auth .wizard > .actions a,
.iofrm-auth .wizard > .actions a[href="#previous"],
.iofrm-auth .wizard > .actions a[href="#next"],
.iofrm-auth .wizard > .actions a[href="#finish"] {
    display: inline-block;
    background-color: #29a4ff !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #fff !important;
    padding: 0.55rem 1.1rem !important;
    font-size: 14px;
    text-decoration: none !important;
    box-shadow: none !important;
}

.iofrm-auth .wizard > .actions a:hover {
    background-color: #1a8be0 !important;
}

.iofrm-auth .wizard > .actions .disabled a {
    opacity: 0.45;
}

/* Register: loading state on Finish while form posts */
.iofrm-auth .wizard > .actions a.iofrm-btn-loading {
    pointer-events: none;
    cursor: wait !important;
    opacity: 0.95;
}

.iofrm-auth .wizard > .actions a.iofrm-actions-muted,
.iofrm-auth .wizard > .actions a.iofrm-actions-muted:hover {
    pointer-events: none !important;
    opacity: 0.42 !important;
    cursor: not-allowed !important;
}

.iofrm-auth .wizard > .actions .iofrm-btn-spinner {
    display: inline-block;
    width: 0.85em;
    height: 0.85em;
    margin-right: 0.45em;
    vertical-align: -0.12em;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    animation: iofrm-btn-spin 0.65s linear infinite;
}

.iofrm-auth .wizard > .actions .iofrm-btn-loading-text {
    vertical-align: middle;
}

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

/* Select2 dark theme */
.iofrm-auth .select2-container--default .select2-selection--single {
    height: 40px !important;
    border: 0 !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border-radius: 6px !important;
}

.iofrm-auth .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
    color: #e5e5e5 !important;
    padding-left: 14px;
}

.iofrm-auth .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px !important;
}

.iofrm-auth .select2-dropdown {
    background: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.15);
}

.iofrm-auth .select2-container--default .select2-results__option {
    color: #fff;
}

.iofrm-auth .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #29a4ff;
}

/* Bootstrap datepicker on dark panel */
.iofrm-auth .datepicker {
    z-index: 1060 !important;
}

.iofrm-auth .datepicker table tr td.active,
.iofrm-auth .datepicker table tr td.active:hover {
    background: #29a4ff !important;
}

/* Terms modal */
.iofrm-auth .modal-content {
    background: #0a0a0a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.iofrm-auth .modal-header,
.iofrm-auth .modal-footer {
    border-color: rgba(255, 255, 255, 0.12);
}

.iofrm-auth .modal-header .close {
    color: #fff;
    opacity: 0.8;
}

@media (max-width: 992px) {
    /* Match iofrm default: hide left image panel, show form full width */
    .iofrm-auth .img-holder,
    .iofrm-auth .iofrm-img-holder {
        display: none !important;
    }

    .iofrm-auth .iofrm-auth-toolbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        padding: 12px 16px;
        background: #000;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        justify-content: space-between;
        pointer-events: auto;
    }

    .iofrm-auth .iofrm-auth-toolbar .iofrm-brand {
        pointer-events: auto;
        min-width: 0;
    }

    .iofrm-auth .iofrm-auth-toolbar .iofrm-brand-name {
        font-size: 1.125rem;
        max-width: 55vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .iofrm-auth .iofrm-auth-toolbar-actions {
        flex-shrink: 0;
    }

    .iofrm-auth .iofrm-brand-logo,
    .iofrm-auth .app-logo.iofrm-brand-logo {
        width: 36px;
        height: 36px;
    }

    /* Allow full-page scroll (iofrm defaults to height:100% + centered flex) */
    html {
        height: auto !important;
    }

    body.iofrm-auth {
        height: auto !important;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto !important;
    }

    body.iofrm-auth .form-body {
        height: auto !important;
        min-height: 100vh;
        overflow: visible !important;
    }

    .iofrm-auth .iofrm-layout {
        display: block;
        height: auto !important;
        min-height: 100vh;
        padding-top: 60px;
        overflow: visible !important;
    }

    .iofrm-auth .form-holder {
        display: block !important;
        visibility: visible !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: calc(100vh - 56px) !important;
        overflow: visible !important;
    }

    /* Stop vertically centering content — that hides the header above the viewport */
    .iofrm-auth .form-holder .form-content {
        display: block !important;
        visibility: visible !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 72px 20px 48px !important;
        text-align: left !important;
    }

    .iofrm-auth .form-holder.iofrm-form-scroll .form-content,
    .iofrm-auth .form-holder.iofrm-welcome-panel .form-content {
        max-height: none !important;
        overflow: visible !important;
        padding-top: 72px !important;
    }

    .iofrm-auth .form-items {
        width: 100%;
        max-width: 100%;
        text-align: left;
    }

    .iofrm-auth .form-items h3,
    .iofrm-auth .form-items p {
        text-align: left;
    }

    .iofrm-auth .iofrm-form-register .iofrm-page-header {
        position: relative;
        z-index: auto;
        background: transparent;
        padding: 0 0 12px;
        margin-bottom: 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .iofrm-auth .iofrm-form-register .iofrm-page-header h3 {
        margin-top: 0;
        margin-bottom: 6px;
        font-size: 1.35rem;
    }

    .iofrm-auth .iofrm-form-register .iofrm-page-header p {
        margin-bottom: 10px;
        font-size: 15px;
        line-height: 1.35;
    }

    .iofrm-auth .iofrm-form-register .iofrm-page-header .page-links {
        margin-bottom: 0;
    }

    .iofrm-auth .iofrm-form-register .iofrm-register-form {
        position: relative;
        z-index: auto;
        clear: both;
    }

    .iofrm-auth .iofrm-form-register .wizard > .steps {
        display: block !important;
        visibility: visible !important;
        position: relative;
        z-index: auto;
        background: transparent;
        margin-top: 1rem;
        padding: 0 0 14px;
        margin-bottom: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .iofrm-auth .wizard > .steps > ul > li:not(:last-child)::after {
        top: 15px;
        left: calc(50% + 18px);
        right: calc(-50% + 18px);
    }

    .iofrm-auth .wizard > .steps .number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .iofrm-auth .wizard > .steps .done a .number::before {
        font-size: 11px;
    }

    .iofrm-auth .wizard > .steps .iofrm-step-label {
        font-size: 12px;
        line-height: 1.3;
    }

    .iofrm-auth .iofrm-form-register .wizard > .steps .disabled a,
    .iofrm-auth .iofrm-form-register .wizard > .steps .disabled a:hover {
        background: transparent !important;
    }
}

/* ---- Welcome landing (/) — right panel ---- */
.iofrm-auth .form-holder.iofrm-welcome-panel .form-content {
    align-items: center !important;
    justify-content: center !important;
    padding: 2rem 3rem !important;
}

.iofrm-auth.iofrm-welcome .form-items {
    width: 100%;
    max-width: 400px;
}

.iofrm-auth.iofrm-welcome .iofrm-page-header {
    display: none;
    margin: 0;
}

.iofrm-auth .iofrm-welcome {
    width: 100%;
}

.iofrm-auth .iofrm-welcome__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.iofrm-auth .iofrm-welcome__title {
    margin: 0 0 0.75rem;
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #fff;
}

.iofrm-auth .iofrm-welcome__desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.5);
}

.iofrm-auth .iofrm-welcome__actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.iofrm-auth .iofrm-welcome__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: auto;
    min-width: 0;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.iofrm-auth .iofrm-welcome__btn--primary {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
}

.iofrm-auth .iofrm-welcome__btn--primary:hover {
    background: #e5e5e5;
    color: #000;
}

.iofrm-auth .iofrm-welcome__btn--primary i {
    font-size: 0.75rem;
    opacity: 0.7;
    transition: transform 0.15s ease;
}

.iofrm-auth .iofrm-welcome__btn--primary:hover i {
    transform: translateX(2px);
}

.iofrm-auth .iofrm-welcome__btn--secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.iofrm-auth .iofrm-welcome__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.iofrm-auth .iofrm-welcome__divider {
    height: 1px;
    margin: 2rem 0 1.5rem;
    background: rgba(255, 255, 255, 0.08);
}

.iofrm-auth .iofrm-welcome__highlights {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.iofrm-auth .iofrm-welcome__highlight {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.iofrm-auth .iofrm-welcome__highlight-title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.01em;
}

.iofrm-auth .iofrm-welcome__highlight-text {
    font-size: 0.75rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.42);
}

@media (max-width: 992px) {
    .iofrm-auth .form-holder.iofrm-welcome-panel .form-content {
        padding: 1.5rem 1.25rem 2.5rem !important;
    }

    .iofrm-auth .iofrm-welcome__title {
        font-size: 1.625rem;
    }
}
