/*
 * Sign-in and password-reset screens: a dark brand panel (from 1024px up)
 * beside a plain form. The markup comes from the auth render hooks in
 * AdminPanelProvider, and every rule is scoped to layouts that contain it, so
 * the profile page keeps Filament's default card. Plain CSS (no build step) -
 * published to public/css/app by `php artisan filament:assets`.
 */

.fi-simple-layout:has(.sb-auth-brand) {
    flex-direction: row;
    align-items: stretch;
    background: #fff;
}

.dark .fi-simple-layout:has(.sb-auth-brand) {
    background: var(--gray-950);
}

/* Brand panel. */
.sb-auth-brand {
    display: none;
}

@media (min-width: 64rem) {
    .sb-auth-brand {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        display: flex;
        flex: 0 0 min(46%, 46rem);
        flex-direction: column;
        justify-content: space-between;
        gap: 3rem;
        padding: 2.75rem 3.5rem;
        color: #cbd5e1;
        background:
            radial-gradient(42rem 32rem at 100% 0%, rgb(0 133 181 / 0.32), transparent 65%),
            radial-gradient(36rem 28rem at 0% 100%, rgb(238 91 42 / 0.16), transparent 65%),
            linear-gradient(160deg, #0f172a 0%, #111827 55%, #0b1120 100%);
    }
}

.sb-auth-contours {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: rgb(148 163 184 / 0.16);
    stroke-width: 1;
    /* Fade the lines behind the copy so the text stays easy to read. */
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 0.3) 55%, #000 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgb(0 0 0 / 0.3) 55%, #000 100%);
}

.sb-auth-brand-body {
    max-width: 30rem;
}

.sb-auth-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.sb-auth-headline {
    margin-top: 1rem;
    font-size: clamp(2rem, 2.6vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #f8fafc;
    text-wrap: balance;
}

.sb-auth-lead {
    margin-top: 1rem;
    font-size: 1rem;
    line-height: 1.65;
    color: #94a3b8;
}

.sb-auth-features {
    display: grid;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.sb-auth-features li {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

.sb-auth-features strong {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #f1f5f9;
}

.sb-auth-feature-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgb(255 255 255 / 0.06);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
    color: #7dd3fc;
}

.sb-auth-feature-icon .fi-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.sb-auth-brand-foot {
    font-size: 0.8125rem;
    color: #64748b;
}

/* Wordmark: orange badge + name + "Admin" tag, as on the storefront header. */
.sb-auth-mark {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: #f8fafc;
}

.sb-auth-mark-badge {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: #ee5b2a;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
}

.sb-auth-mark-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.sb-auth-mark-tag {
    padding: 0.125rem 0.5rem;
    border: 1px solid rgb(255 255 255 / 0.16);
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

/* Copy of the mark above the form, only while the brand panel is hidden. */
.sb-auth-mark-form {
    margin-bottom: 2rem;
    color: var(--gray-950);
}

.sb-auth-mark-form .sb-auth-mark-tag {
    border-color: var(--gray-200);
    color: var(--gray-500);
}

.dark .sb-auth-mark-form {
    color: #fff;
}

.dark .sb-auth-mark-form .sb-auth-mark-tag {
    border-color: rgb(255 255 255 / 0.15);
    color: var(--gray-400);
}

@media (min-width: 64rem) {
    .sb-auth-mark-form {
        display: none;
    }
}

/* Form side: no card, left-aligned header, roomier fields. */
.fi-simple-layout:has(.sb-auth-brand) .fi-simple-main-ctn {
    flex: 1 1 0;
    min-width: 0;
    padding: 3rem 1.5rem;
}

.fi-simple-layout:has(.sb-auth-brand) .fi-simple-main {
    max-width: 25rem;
    margin-block: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.fi-simple-layout:has(.sb-auth-brand) .fi-simple-page-content {
    row-gap: 2rem;
}

/* The wordmark above replaces Filament's plain-text logo. */
.fi-simple-layout:has(.sb-auth-brand) .fi-simple-header .fi-logo {
    display: none;
}

.fi-simple-layout:has(.sb-auth-brand) .fi-simple-header {
    align-items: flex-start;
}

.fi-simple-layout:has(.sb-auth-brand) .fi-simple-header-heading {
    text-align: start;
    font-size: 1.75rem;
    line-height: 2.25rem;
    letter-spacing: -0.025em;
}

.fi-simple-layout:has(.sb-auth-brand) .fi-simple-header-subheading {
    text-align: start;
    font-size: 0.9375rem;
}

.fi-simple-layout:has(.sb-auth-brand) .fi-input-wrp {
    border-radius: 0.625rem;
}

.fi-simple-layout:has(.sb-auth-brand) .fi-input {
    padding-block: 0.625rem;
}

.fi-simple-layout:has(.sb-auth-brand) .fi-btn.fi-color-primary {
    padding-block: 0.75rem;
    border-radius: 0.625rem;
    font-weight: 600;
}

/* Navy submit button to match the brand panel and sidebar (dark mode keeps Filament's). */
html:not(.dark) .fi-simple-layout:has(.sb-auth-brand) .fi-btn.fi-color-primary {
    background-color: #0f172a;
    color: #fff;
}

html:not(.dark) .fi-simple-layout:has(.sb-auth-brand) .fi-btn.fi-color-primary:hover {
    background-color: #1e293b;
}
