/**
 * Sign-in screen for the PSLC Indonesia admin panel.
 *
 * Colours come from the panel's primary palette (see AdminPanelProvider), so
 * the screen follows the brand colour automatically. The illustration reuses
 * the accent colours of the PSLC logo.
 */

.pslc-auth {
    --pslc-ink: #111827;
    --pslc-muted: #6b7280;
    --pslc-line: #e5e7eb;

    display: flex;
    min-height: 100vh;
    background-color: #fff;
    color-scheme: light;
}

.pslc-auth__card {
    display: flex;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background-color: #fff;
}

/* Left panel ------------------------------------------------------------- */

.pslc-auth__aside {
    position: relative;
    display: none;
    flex: 0 0 50%;
    overflow: hidden;
    padding: 3rem 2.5rem;
    background-image: linear-gradient(155deg, rgb(var(--primary-300)) 0%, rgb(var(--primary-500)) 55%, rgb(var(--primary-700)) 100%);
    color: #fff;
}

.pslc-auth__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.pslc-auth__blob {
    position: absolute;
    border-radius: 9999px;
}

.pslc-auth__blob--1 {
    top: -120px;
    left: -110px;
    width: 340px;
    height: 340px;
    background-image: radial-gradient(circle, rgb(255 255 255 / .16) 0%, rgb(255 255 255 / 0) 70%);
}

.pslc-auth__blob--2 {
    right: -140px;
    bottom: -160px;
    width: 420px;
    height: 420px;
    background-image: radial-gradient(circle, rgb(255 255 255 / .14) 0%, rgb(255 255 255 / 0) 70%);
}

.pslc-auth__blob--3 {
    top: 28%;
    right: 10%;
    width: 14px;
    height: 14px;
    background-color: #f5cf46;
    opacity: .9;
}

.pslc-auth__blob--4 {
    bottom: 18%;
    left: 8%;
    width: 10px;
    height: 10px;
    background-color: #38bdf8;
    opacity: .85;
}

.pslc-auth__art {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.pslc-auth__illustration {
    width: 100%;
    max-width: clamp(320px, 30vw, 560px);
    height: auto;
}

.pslc-auth__pitch {
    position: relative;
    text-align: center;
}

/* Slides stack in a single grid cell so cross-fading never shifts the dots. */
.pslc-auth__slides {
    display: grid;
}

.pslc-auth__slide {
    grid-area: 1 / 1;
}

.pslc-auth__pitch-title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -.01em;
}

.pslc-auth__pitch-text {
    max-width: 22rem;
    margin: .75rem auto 0;
    font-size: .9375rem;
    line-height: 1.6;
    color: rgb(255 255 255 / .78);
}

.pslc-auth__dots {
    display: flex;
    gap: .5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.pslc-auth__dot {
    position: relative;
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background-color: rgb(255 255 255 / .45);
    cursor: pointer;
    transition: width .3s ease, background-color .3s ease;
}

/* Widen the tap target without enlarging the visible dot. */
.pslc-auth__dot::before {
    content: '';
    position: absolute;
    inset: -10px -4px;
}

.pslc-auth__dot:hover {
    background-color: rgb(255 255 255 / .75);
}

.pslc-auth__dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.pslc-auth__dot--active {
    width: 20px;
    background-color: #fff;
}

/* Form panel ------------------------------------------------------------- */

.pslc-auth__main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 2.5rem 1.5rem;
    background-color: #fff;
    color: var(--pslc-ink);
}

.pslc-auth__inner {
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    max-width: 22.5rem;
    margin: 0 auto;
}

.pslc-auth__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
}

.pslc-auth__brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1.75rem;
}

.pslc-auth__brand-logo {
    width: 68px;
    height: 68px;
    padding: 9px;
    border-radius: 9999px;
    background-color: #fff;
    object-fit: contain;
}

.pslc-auth__heading {
    margin: 0;
    font-size: 1.75rem;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    letter-spacing: -.02em;
    color: var(--pslc-ink);
}

.pslc-auth__subheading {
    margin: .75rem auto 0;
    max-width: 20rem;
    font-size: .9375rem;
    line-height: 1.6;
    text-align: center;
    color: var(--pslc-muted);
}

.pslc-auth__form {
    margin-top: 2rem;
}

.pslc-auth__footer {
    padding-top: 2.5rem;
    font-size: .875rem;
    text-align: center;
    color: var(--pslc-muted);
}

.pslc-auth__footer-text {
    margin-right: .25rem;
}

/*
 * Filament enables dark mode panel-wide. The sign-in screen is a light-only
 * surface, so its dark variants are neutralised here. The `.dark` prefix keeps
 * these rules from winning over the light-mode utilities when they are not
 * needed.
 */
.dark .pslc-auth .fi-input {
    color: var(--pslc-ink);
}

.dark .pslc-auth .fi-input::placeholder {
    color: rgb(156 163 175);
}

.dark .pslc-auth .fi-input-wrp {
    background-color: #fff;
}

.dark .pslc-auth .fi-input-wrp-icon {
    color: rgb(107 114 128);
}

.dark .pslc-auth .fi-checkbox-input:not(:checked) {
    background-color: #fff;
}

.dark .pslc-auth .fi-fo-field-wrp-label span {
    color: var(--pslc-ink);
}

/* Inputs ----------------------------------------------------------------- */

.pslc-auth .fi-input-wrp {
    border-radius: .75rem;
}

.pslc-auth .fi-input {
    padding-top: .7rem;
    padding-bottom: .7rem;
}

.pslc-auth .fi-fo-field-wrp-hint {
    justify-content: flex-end;
    margin-bottom: .4rem;
}

.pslc-auth .fi-fo-field-wrp-label {
    font-size: .875rem;
}

/* Submit button ---------------------------------------------------------- */

.pslc-auth .fi-btn {
    border-radius: .75rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: .9375rem;
    font-weight: 600;
    box-shadow: 0 12px 24px -14px rgba(var(--primary-700), .95);
}

/* Desktop ---------------------------------------------------------------- */

@media (min-width: 1024px) {
    .pslc-auth__aside {
        display: flex;
        flex-direction: column;
    }

    .pslc-auth__main {
        padding: 3rem 3.5rem;
    }
}

/* Reduce visual noise for people who ask for it --------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .pslc-auth__illustration {
        animation: pslc-auth-float 9s ease-in-out infinite;
    }

    @keyframes pslc-auth-float {
        0%,
        100% {
            transform: translateY(-6px);
        }

        50% {
            transform: translateY(6px);
        }
    }
}
