/* Trusido — Filament auth split layout */

body.fi-body:has(.ta-auth-split) {
    background: #fff !important;
}

html.dark body.fi-body:has(.ta-auth-split) {
    background: #0b1220 !important;
}

.fi-body.fi-panel-business:has(.ta-auth-split) > .trusido-panel-legal,
.fi-body.fi-panel-app:has(.ta-auth-split) > .trusido-panel-legal {
    display: none !important;
}

.ta-auth-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.ta-auth-benefits {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(2rem, 5vw, 3rem);
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.95), transparent 34%),
        radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.45), transparent 28%),
        linear-gradient(135deg, #07111F 0%, #111827 35%, #2563EB 72%, #7C3AED 100%);
}

.ta-auth-benefits::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: 0.28;
    pointer-events: none;
}

.ta-auth-benefits__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 26rem;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.ta-auth-passport {
    padding: 1.25rem 1.35rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.ta-auth-passport__label {
    font-size: 0.75rem;
    opacity: 0.75;
    margin: 0 0 0.35rem;
}

.ta-auth-passport__id {
    margin: 0;
    font-family: ui-monospace, monospace;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.ta-auth-passport__stat {
    margin: 0.65rem 0 0;
    font-size: 0.8125rem;
    opacity: 0.82;
}

.ta-auth-benefits__title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    text-wrap: balance;
}

.ta-auth-benefits__lead {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.ta-auth-benefits__list {
    list-style: none;
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
}

.ta-auth-benefits__list li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.ta-auth-benefits__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.85);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.ta-auth-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #F6F8FB;
}

.ta-auth-main__center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem) 1rem;
}

.ta-auth-main__inner {
    width: 100%;
    max-width: 30rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ta-auth-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    margin: 0 0 1.5rem;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    color: #07111F;
    text-decoration: none;
}

.ta-auth-brand__mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

.ta-auth-main__bottom {
    flex-shrink: 0;
    width: 100%;
    max-width: 30rem;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 1.75rem);
}

.ta-auth-main__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.65rem 1rem;
    margin-bottom: 0.85rem;
    font-size: 0.8125rem;
    color: #64748b;
    overflow: visible;
}

.fi-body.fi-panel-app .ta-auth-main__bottom,
.fi-body.fi-panel-business .ta-auth-main__bottom {
    overflow: visible;
}

.fi-body.fi-panel-app .td-pref-menu__panel,
.fi-body.fi-panel-business .td-pref-menu__panel {
    z-index: 60;
}

.ta-auth-main__foot > a {
    color: #475569;
    font-weight: 600;
    text-decoration: none;
}

.ta-auth-main__foot > a:hover {
    color: #2563eb;
}

.ta-auth-main__legal .trusido-panel-legal {
    margin-top: 0;
    padding-top: 0.85rem;
    border-top: 1px solid #e2e8f0;
}

.ta-auth-form-card {
    width: 100%;
    padding: clamp(1.65rem, 3vw, 2.15rem);
    border-radius: 20px;
    border: 1px solid #EEF2F7;
    background: #fff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.ta-auth-form-card__head {
    margin-bottom: 1.35rem;
}

.ta-auth-form-card__head h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #07111F;
}

.ta-auth-form-card__sub {
    margin-top: 0.45rem;
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.5;
}

.ta-auth-form-card__sub a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.ta-auth-form-card__sub a:hover {
    text-decoration: underline;
}

.ta-auth-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.ta-auth-alert--danger {
    color: #991b1b;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.ta-auth-alert--success {
    color: #166534;
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.ta-auth-alert a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.ta-auth-form-card .fi-fo-field-wrp-error-message,
.ta-auth-form-card .fi-fo-field-wrp-error-message span {
    color: #dc2626 !important;
    font-size: 0.875rem;
    line-height: 1.45;
}

.ta-auth-form-card .fi-fo-field-wrp-error-message a {
    color: #dc2626;
    font-weight: 600;
    text-decoration: underline;
}

/* Filament form — larger touch targets */
.ta-auth-form-card .fi-fo-field-wrp {
    gap: 0.45rem;
}

.ta-auth-form-card .fi-fo-field-wrp-label,
.ta-auth-form-card .fi-fo-field-wrp-label span {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #0f172a;
}

.ta-auth-form-card .fi-input-wrp {
    min-height: 3.125rem;
    border-radius: 14px !important;
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.ta-auth-form-card .fi-input-wrp-input,
.ta-auth-form-card input.fi-input {
    min-height: 3rem;
    font-size: 1rem !important;
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
}

.ta-auth-form-card .fi-ac-btn-action,
.ta-auth-form-card .fi-btn.fi-ac-btn-action,
.ta-auth-form-card .fi-btn.fi-btn-color-primary:not(.fi-outlined) {
    width: 100% !important;
    min-height: 3.25rem !important;
    height: auto !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    padding: 0.875rem 1.5rem !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22);
}

.ta-auth-form-card .fi-ac-btn-action:hover,
.ta-auth-form-card .fi-btn.fi-ac-btn-action:hover,
.ta-auth-form-card .fi-btn.fi-btn-color-primary:not(.fi-outlined):hover,
.ta-auth-form-card .fi-btn.fi-btn-color-primary:not(.fi-outlined):focus-visible {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    filter: brightness(1.05);
    opacity: 1 !important;
}

.ta-auth-form-card .fi-ac-btn-action .fi-btn-label,
.ta-auth-form-card .fi-btn.fi-btn-color-primary:not(.fi-outlined) .fi-btn-label {
    color: inherit !important;
}

.ta-auth-form-card .fi-ac.fi-width-full {
    margin-top: 0.35rem;
}

.ta-auth-form-card .fi-fo-checkbox {
    font-size: 0.9375rem;
}

html.dark .ta-auth-main {
    background: #0b1220;
}

html.dark .ta-auth-form-card {
    background: #111827;
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

html.dark .ta-auth-brand {
    color: #f8fafc;
}

html.dark .ta-auth-form-card__head h1 {
    color: #f8fafc;
}

html.dark .ta-auth-form-card__sub {
    color: #94a3b8;
}

html.dark .ta-auth-alert--danger {
    color: #fecaca;
    background: rgba(220, 38, 38, 0.14);
    border-color: rgba(248, 113, 113, 0.25);
}

html.dark .ta-auth-alert--success {
    color: #bbf7d0;
    background: rgba(22, 163, 74, 0.14);
    border-color: rgba(74, 222, 128, 0.25);
}

html.dark .ta-auth-form-card .fi-fo-field-wrp-error-message,
html.dark .ta-auth-form-card .fi-fo-field-wrp-error-message span {
    color: #f87171 !important;
}

html.dark .ta-auth-form-card .fi-fo-field-wrp-error-message a {
    color: #fca5a5;
}

html.dark .ta-auth-form-card .fi-fo-field-wrp-label,
html.dark .ta-auth-form-card .fi-fo-field-wrp-label span {
    color: #e2e8f0;
}

html.dark .ta-auth-form-card .fi-input-wrp {
    background: #1e293b !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
}

html.dark .ta-auth-main__foot,
html.dark .ta-auth-main__foot > a {
    color: #94a3b8;
}

html.dark .ta-auth-main__foot > a:hover {
    color: #93c5fd;
}

html.dark .ta-auth-main__legal .trusido-panel-legal {
    border-top-color: rgba(148, 163, 184, 0.14);
    color: #94a3b8;
}

@media (max-width: 960px) {
    .ta-auth-split {
        grid-template-columns: 1fr;
    }

    .ta-auth-benefits {
        display: none;
    }

    .ta-auth-main__center {
        padding-top: 2rem;
    }
}
