/* Photocode admin login — split studio layout */

.pc-login {
    --pc-teal-50: #f0fdfa;
    --pc-teal-100: #ccfbf1;
    --pc-teal-200: #99f6e4;
    --pc-teal-600: #0d9488;
    --pc-teal-700: #0f766e;
    --pc-teal-800: #115e59;
    --pc-teal-900: #134e4a;
    --pc-ink: #0f172a;
    --pc-slate-500: #64748b;
    --pc-slate-600: #475569;
    --pc-slate-200: #e2e8f0;
    --pc-slate-100: #f1f5f9;
    --pc-cream: #f7faf9;
    --pc-white: #ffffff;
    --pc-brand: "Sora", "DM Sans", ui-sans-serif, system-ui, sans-serif;
    --pc-ease: cubic-bezier(0.22, 1, 0.36, 1);
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: var(--pc-cream);
    color: var(--pc-ink);
}

/* ——— Brand panel ——— */

.pc-login-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: clamp(2rem, 4vw, 3.5rem);
    color: var(--pc-white);
    isolation: isolate;
}

.pc-login-brand-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(160deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 118, 110, 0.55) 48%, rgba(19, 78, 74, 0.92) 100%),
        linear-gradient(25deg, #0f766e 0%, #134e4a 42%, #0f172a 100%);
}

.pc-login-grid {
    position: absolute;
    inset: -10%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    transform: rotate(-8deg) scale(1.2);
    mask-image: radial-gradient(ellipse 70% 60% at 40% 40%, black 20%, transparent 75%);
    animation: pc-grid-drift 28s linear infinite;
}

.pc-login-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.45;
    pointer-events: none;
}

.pc-login-glow--a {
    width: 22rem;
    height: 22rem;
    top: -4rem;
    right: -3rem;
    background: #5eead4;
    animation: pc-float-a 9s var(--pc-ease) infinite alternate;
}

.pc-login-glow--b {
    width: 18rem;
    height: 18rem;
    bottom: 10%;
    left: -4rem;
    background: #99f6e4;
    opacity: 0.28;
    animation: pc-float-b 11s var(--pc-ease) infinite alternate;
}

.pc-login-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 28rem;
    animation: pc-rise 0.9s var(--pc-ease) both;
}

.pc-login-kicker {
    margin: 0 0 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(204, 251, 241, 0.9);
}

.pc-login-wordmark {
    margin: 0;
    font-family: var(--pc-brand);
    font-size: clamp(2.75rem, 5.5vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.pc-login-tagline {
    margin: 1.1rem 0 0;
    max-width: 24rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(240, 253, 250, 0.88);
}

.pc-login-frames {
    position: relative;
    height: 11.5rem;
    margin: 2.25rem 0 1.75rem;
}

.pc-frame {
    position: absolute;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)),
        repeating-linear-gradient(
            -12deg,
            rgba(255, 255, 255, 0.05) 0 8px,
            rgba(255, 255, 255, 0.01) 8px 16px
        );
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(6px);
}

.pc-frame--a {
    width: 6.4rem;
    height: 8.2rem;
    left: 0;
    bottom: 0.4rem;
    border-radius: 0.35rem;
    animation: pc-frame-a 7s var(--pc-ease) infinite alternate;
}

.pc-frame--b {
    width: 7rem;
    height: 7rem;
    left: 5.4rem;
    bottom: 1.6rem;
    border-radius: 0.85rem;
    animation: pc-frame-b 8s var(--pc-ease) infinite alternate;
}

.pc-frame--c {
    width: 5.6rem;
    height: 5.6rem;
    left: 11.2rem;
    bottom: 0;
    border-radius: 0.25rem;
    animation: pc-frame-c 6.5s var(--pc-ease) infinite alternate;
}

.pc-frame-label {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(15, 23, 42, 0.35);
    border-radius: 0.25rem;
    padding: 0.2rem 0.4rem;
}

.pc-login-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.pc-login-points li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.92rem;
    color: rgba(240, 253, 250, 0.92);
}

.pc-login-point-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--pc-teal-200);
    box-shadow: 0 0 0 4px rgba(153, 246, 228, 0.18);
    flex-shrink: 0;
}

/* ——— Form panel ——— */

.pc-login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    position: relative;
    background:
        radial-gradient(ellipse 80% 50% at 100% 0%, rgba(15, 118, 110, 0.07), transparent 55%),
        var(--pc-cream);
}

.pc-login-main {
    width: 100%;
    max-width: 26rem;
}

.pc-login-footer {
    position: absolute;
    bottom: 1.25rem;
    margin: 0;
    font-size: 0.75rem;
    color: var(--pc-slate-500);
}

.pc-login-page {
    width: 100%;
}

.pc-login-card {
    width: 100%;
    animation: pc-rise 0.75s var(--pc-ease) 0.12s both;
}

.pc-login-header {
    margin-bottom: 1.75rem;
}

.pc-login-mobile-brand {
    display: none;
    margin-bottom: 1.25rem;
}

.pc-login-mobile-mark {
    font-family: var(--pc-brand);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--pc-teal-800);
}

.pc-login-heading {
    margin: 0;
    font-family: var(--pc-brand);
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 650;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--pc-ink);
}

.pc-login-subheading {
    margin: 0.65rem 0 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--pc-slate-600);
}

/* Form controls polish */

.pc-login-form .fi-fo-field-wrp,
.pc-login-form .fi-sc-component {
    margin-bottom: 0.15rem;
}

.pc-login-form .fi-input-wrp {
    border-radius: 0.9rem !important;
    border-color: var(--pc-slate-200) !important;
    background: var(--pc-white) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s var(--pc-ease);
}

.pc-login-form .fi-input-wrp:focus-within {
    border-color: var(--pc-teal-600) !important;
    box-shadow:
        0 0 0 4px rgba(15, 118, 110, 0.12),
        0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.pc-login-form .fi-input {
    min-height: 2.85rem;
    font-size: 0.95rem !important;
}

.pc-login-form .fi-btn {
    border-radius: 0.9rem !important;
    min-height: 2.95rem;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    transition:
        transform 0.2s var(--pc-ease),
        box-shadow 0.2s ease,
        filter 0.2s ease !important;
}

.pc-login-form .fi-btn-color-primary {
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}

.pc-login-form .fi-btn-color-primary:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
    box-shadow: 0 14px 28px rgba(15, 118, 110, 0.34);
}

.pc-login-form .fi-btn-color-primary:active {
    transform: translateY(0);
}

.pc-login-form .fi-checkbox-input {
    border-radius: 0.35rem;
}

.pc-login-form .fi-fo-field-wrp-label,
.pc-login-form label {
    font-weight: 600;
    color: var(--pc-ink);
}

/* Hide default Filament simple-layout chrome if any leaks in */
.pc-login .fi-simple-layout,
.pc-login .fi-simple-main-ctn {
    all: unset;
    display: contents;
}

/* ——— Motion ——— */

@keyframes pc-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pc-grid-drift {
    from {
        transform: rotate(-8deg) scale(1.2) translate3d(0, 0, 0);
    }
    to {
        transform: rotate(-8deg) scale(1.2) translate3d(24px, 18px, 0);
    }
}

@keyframes pc-float-a {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-18px, 22px, 0);
    }
}

@keyframes pc-float-b {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(16px, -14px, 0);
    }
}

@keyframes pc-frame-a {
    from {
        transform: translateY(0) rotate(-2deg);
    }
    to {
        transform: translateY(-8px) rotate(1deg);
    }
}

@keyframes pc-frame-b {
    from {
        transform: translateY(0) rotate(3deg);
    }
    to {
        transform: translateY(-12px) rotate(-1deg);
    }
}

@keyframes pc-frame-c {
    from {
        transform: translateY(0) rotate(-1deg);
    }
    to {
        transform: translateY(-6px) rotate(2deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-login-brand-inner,
    .pc-login-card,
    .pc-login-grid,
    .pc-login-glow,
    .pc-frame {
        animation: none !important;
    }
}

/* ——— Responsive ——— */

@media (max-width: 960px) {
    .pc-login {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        min-height: 100dvh;
    }

    .pc-login-brand {
        min-height: 0;
        padding: 1.5rem 1.35rem 1.65rem;
        align-items: flex-end;
    }

    .pc-login-wordmark {
        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .pc-login-tagline {
        font-size: 0.9rem;
        max-width: 22rem;
        margin-top: 0.75rem;
    }

    .pc-login-frames,
    .pc-login-points {
        display: none;
    }

    .pc-login-panel {
        padding: 1.5rem 1.25rem 3.75rem;
        align-items: stretch;
        justify-content: flex-start;
    }

    .pc-login-main {
        max-width: 26rem;
        margin-inline: auto;
        width: 100%;
    }

    .pc-login-header {
        margin-bottom: 1.35rem;
    }

    .pc-login-mobile-brand {
        display: none;
    }

    .pc-login-footer {
        left: 0;
        right: 0;
        text-align: center;
    }
}

@media (max-width: 520px) {
    .pc-login-brand {
        min-height: auto;
        padding-bottom: 1.5rem;
    }

    .pc-login-kicker {
        letter-spacing: 0.16em;
    }
}
