/* Stripe-style sign-in screens for the admin panel (login and password reset). */

.auth-shell {
    --auth-ink: #1a1f36;
    --auth-text: #3c4257;
    --auth-muted: #697386;
    --auth-accent: #635bff;
    --auth-accent-hover: #5851e5;
    --auth-ring: rgba(60, 66, 87, 0.16);
    --auth-focus: rgba(99, 91, 255, 0.36);
    position: relative;
    min-height: 100vh;
    color: var(--auth-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Ubuntu, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Background: skewed stripes on a soft grey canvas */

.auth-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #f6f9fc;
    z-index: 0;
}

.auth-stripes {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(16, 44px);
    transform: skewY(-12deg);
    transform-origin: 0 0;
}

.auth-stripe {
    display: block;
}

.auth-stripe--1 {
    grid-row: 1;
    grid-column: 1 / span 3;
    background: #e3e8ee;
}

.auth-stripe--2 {
    grid-row: 2;
    grid-column: 1 / span 5;
    background: linear-gradient(90deg, #635bff, #7a73ff);
}

.auth-stripe--3 {
    grid-row: 3;
    grid-column: 1 / span 2;
    background: #80e9ff;
}

.auth-stripe--4 {
    grid-row: 2;
    grid-column: 10 / span 3;
    background: #e3e8ee;
}

.auth-stripe--5 {
    grid-row: 3;
    grid-column: 9 / span 4;
    background: linear-gradient(90deg, #a960ee, #635bff);
}

.auth-stripe--6 {
    grid-row: 4 / span 13;
    grid-column: 1 / -1;
    background: linear-gradient(180deg, #eef2f7, #f6f9fc 60%);
}

.auth-stripe--7 {
    grid-row: 4;
    grid-column: 11 / span 2;
    background: #80e9ff;
}

/* Page frame */

.auth-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 48px 20px 32px;
}

.auth-brand,
.auth-main {
    width: 100%;
    max-width: 540px;
}

.auth-brand {
    padding: 0 0 40px;
}

.auth-brand a {
    display: inline-block;
}

.auth-brand img {
    display: block;
    width: 180px;
    height: auto;
}

.auth-main {
    flex: 1;
}

/* Card */

.auth-card {
    background: #fff;
    border-radius: 6px;
    padding: 56px 48px;
    box-shadow: rgba(50, 50, 93, 0.25) 0 13px 27px -5px, rgba(0, 0, 0, 0.1) 0 8px 16px -8px;
}

.auth-card__heading {
    margin: 0 0 24px;
    color: var(--auth-ink);
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.auth-card__subheading {
    margin: -12px 0 24px;
    color: var(--auth-muted);
    font-size: 14px;
    line-height: 20px;
}

.auth-card__subheading a,
.auth-card .fi-link {
    color: var(--auth-accent);
    font-weight: 500;
    text-decoration: none;
}

.auth-card__subheading a:hover,
.auth-card .fi-link:hover {
    color: var(--auth-ink);
}

/* Filament form controls inside the card */

.auth-card .fi-fo-field-label-content,
.auth-card .fi-fo-field-label {
    color: var(--auth-text);
    font-size: 14px;
    font-weight: 500;
}

.auth-card .fi-fo-field-label-required-mark,
.auth-card sup {
    display: none;
}

.auth-card .fi-input-wrp {
    min-height: 44px;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--auth-ring), 0 1px 1px rgba(0, 0, 0, 0.04);
    --tw-ring-shadow: 0 0 #0000;
    transition: box-shadow 0.15s ease;
}

.auth-card .fi-input-wrp:focus-within {
    box-shadow: 0 0 0 1px var(--auth-accent), 0 0 0 4px var(--auth-focus);
}

.auth-card .fi-input-wrp.fi-invalid,
.auth-card .fi-fo-field-has-error .fi-input-wrp {
    box-shadow: 0 0 0 1px #df1b41, 0 0 0 4px rgba(223, 27, 65, 0.18);
}

.auth-card .fi-input {
    color: var(--auth-ink);
    font-size: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.auth-card .fi-fo-field-wrp-error-message {
    color: #df1b41;
    font-size: 13px;
}

.auth-card .fi-checkbox-input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: var(--auth-accent);
}

.auth-card .fi-checkbox-input:checked {
    background-color: var(--auth-accent);
    --tw-ring-color: var(--auth-accent);
}

.auth-card .fi-btn {
    min-height: 44px;
    border-radius: 4px;
    background: var(--auth-accent);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    box-shadow: rgba(50, 50, 93, 0.11) 0 4px 6px, rgba(0, 0, 0, 0.08) 0 1px 3px;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.auth-card .fi-btn:hover {
    background: var(--auth-accent-hover);
}

.auth-card .fi-btn:active {
    transform: translateY(1px);
}

.auth-card .fi-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px var(--auth-focus);
}

.auth-card .fi-btn .fi-btn-label,
.auth-card .fi-btn .fi-icon {
    color: #fff;
}

/* Below the card */

.auth-aside {
    margin: 24px 0 0;
    text-align: center;
    color: var(--auth-muted);
    font-size: 14px;
}

.auth-aside a,
.auth-footer a {
    color: var(--auth-accent);
    font-weight: 500;
    text-decoration: none;
}

.auth-aside a:hover,
.auth-footer a:hover {
    color: var(--auth-ink);
}

.auth-footer {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding-top: 40px;
    color: var(--auth-muted);
    font-size: 13px;
}

@media (max-width: 600px) {
    .auth-layout {
        padding-top: 32px;
    }

    .auth-brand {
        padding-bottom: 24px;
    }

    .auth-card {
        padding: 40px 24px;
    }
}
