/* ==========================================================================
   Login — brand-agnostic "Playout" console entrance. Scoped to .pl-auth.
   ========================================================================== */
.pl-auth {
    --ink: #0b0f1a;
    --ink-2: #121829;
    --line: rgba(255, 255, 255, 0.09);
    --chalk: #eef1f7;
    --chalk-2: #aab3c5;
    --chalk-3: #8a94a8;
    --mint: #5ef2c0;
    --tally: #ff4d5a;
    --amber: #ffb454;
    --violet: #7c6cff;
    --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
    --font-body: "Figtree", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
    position: relative; isolation: isolate; overflow: hidden;
    min-height: 100vh; min-height: 100dvh;
    display: grid; place-items: center;
    padding: 32px 20px;
    background: var(--ink); color: var(--chalk);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}
.pl-auth * { box-sizing: border-box; }

@keyframes pl-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pl-drift-a { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(8%, -6%) scale(1.12); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes pl-drift-b { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6%, 8%) scale(1.08); } 100% { transform: translate(0, 0) scale(1); } }
@keyframes pl-drift-c { 0% { transform: translate(0, 0); } 50% { transform: translate(-5%, -4%); } 100% { transform: translate(0, 0); } }
@keyframes pl-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 90, .6), 0 0 24px rgba(255, 77, 90, .5); } 70% { box-shadow: 0 0 0 14px rgba(255, 77, 90, 0), 0 0 24px rgba(255, 77, 90, .5); } }
@keyframes pl-pulse-sm { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 90, .55); } 70% { box-shadow: 0 0 0 8px rgba(255, 77, 90, 0); } }
@keyframes pl-spin { to { transform: rotate(360deg); } }

/* backdrop ------------------------------------------------------------------ */
.pl-auth-bg { position: absolute; inset: 0; z-index: -1; }
.pl-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .7; will-change: transform; }
.pl-blob-a { width: 60vw; height: 60vw; left: -18vw; top: -22vw; background: radial-gradient(circle at 40% 40%, rgba(94, 242, 192, .5), rgba(94, 242, 192, 0) 65%); animation: pl-drift-a 20s ease-in-out infinite; }
.pl-blob-b { width: 55vw; height: 55vw; right: -18vw; bottom: -20vw; background: radial-gradient(circle at 60% 50%, rgba(124, 108, 255, .55), rgba(124, 108, 255, 0) 65%); animation: pl-drift-b 24s ease-in-out infinite; }
.pl-blob-c { width: 30vw; height: 30vw; left: 50%; top: 55%; background: radial-gradient(circle, rgba(255, 180, 84, .28), rgba(255, 180, 84, 0) 65%); animation: pl-drift-c 28s ease-in-out infinite; }
.pl-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 15%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 45%, #000 15%, transparent 70%);
}
.pl-grain {
    position: absolute; inset: 0; opacity: .35; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.pl-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07); }
.pl-ring-1 { width: 70vmin; height: 70vmin; left: -20vmin; top: 10vmin; }
.pl-ring-2 { width: 110vmin; height: 110vmin; right: -45vmin; top: -30vmin; border-color: rgba(94, 242, 192, .08); }

/* stage --------------------------------------------------------------------- */
.pl-auth-stage {
    width: min(1120px, 100%);
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 420px);
    gap: 48px; align-items: center;
}
.pl-brand { animation: pl-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.pl-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--chalk-2); }
.pl-tally { width: 9px; height: 9px; border-radius: 50%; background: var(--tally); animation: pl-pulse-sm 2.2s ease-out infinite; flex: 0 0 auto; }

.pl-wordmark {
    display: inline-flex; align-items: baseline; gap: .04em;
    margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.045em; line-height: .95;
    color: var(--chalk) !important;
}
.pl-wordmark--xl { font-size: clamp(64px, 11vw, 148px); }
.pl-o {
    position: relative; display: inline-block; width: .74em; height: .74em; margin: 0 .02em; align-self: center; transform: translateY(.02em);
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%, #ff8d95, var(--tally) 55%, #b8202c);
    animation: pl-pulse 2.4s ease-out infinite;
}
.pl-o::after { content: ""; position: absolute; inset: 26%; border-radius: 50%; background: var(--ink); opacity: .85; }
.pl-lede { margin: 22px 0 0; max-width: 46ch; font-size: 17px; line-height: 1.5; color: var(--chalk-2); }
.pl-marks { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.pl-marks li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--chalk-3); letter-spacing: .02em; }
.pl-marks i { width: 8px; height: 8px; border-radius: 2px; background: var(--mint); }
.pl-marks li:nth-child(2) i { background: var(--violet); border-radius: 50%; }
.pl-marks li:nth-child(3) i { background: var(--amber); transform: rotate(45deg); }

/* card ---------------------------------------------------------------------- */
.pl-card {
    position: relative;
    padding: 30px 30px 24px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
    border: 1px solid var(--line);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    animation: pl-rise .7s cubic-bezier(.2, .7, .2, 1) .12s both;
}
.pl-card::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, rgba(94, 242, 192, .6), transparent); border-radius: inherit; }
.pl-card-head h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; color: var(--chalk) !important; }
.pl-card-head p { margin: 6px 0 20px; font-size: 13px; color: var(--chalk-3); }
.pl-flash:empty { display: none; }
.pl-flash .alert { border-radius: 12px; font-size: 13px; padding: 10px 40px 10px 14px; margin-bottom: 16px; }
.pl-flash .alert-danger { background: rgba(255, 77, 90, .12); border-color: rgba(255, 77, 90, .35); color: #ffb3b8; }
.pl-flash .alert-success { background: rgba(94, 242, 192, .12); border-color: rgba(94, 242, 192, .35); color: #b8f5e0; }
.pl-flash .btn-close { filter: invert(1); opacity: .6; }

.pl-field { display: block; margin-bottom: 14px; }
.pl-field-label { display: block; margin-bottom: 7px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--chalk-3); }
.pl-field-row { position: relative; display: block; }
.pl-field input {
    width: 100%; height: 50px; padding: 0 16px;
    border-radius: 14px; border: 1px solid var(--line);
    background: rgba(11, 15, 26, .55); color: var(--chalk);
    font: 500 15px/1 var(--font-body);
    outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    -webkit-appearance: none; appearance: none;
}
.pl-field input::placeholder { color: var(--chalk-3); }
.pl-field input:focus { border-color: rgba(94, 242, 192, .6); box-shadow: 0 0 0 4px rgba(94, 242, 192, .12); background: rgba(11, 15, 26, .8); }
.pl-field input:-webkit-autofill { -webkit-text-fill-color: var(--chalk); -webkit-box-shadow: 0 0 0 1000px #131a2c inset; transition: background-color 9999s; }
.pl-field-row input { padding-right: 48px; }
.pl-eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--chalk-3); cursor: pointer; display: grid; place-items: center; }
.pl-eye:hover, .pl-eye.is-on { color: var(--mint); background: rgba(255, 255, 255, .05); }

.pl-submit {
    margin-top: 8px; width: 100%; height: 52px;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    border: 0; border-radius: 14px; cursor: pointer;
    background: var(--mint); color: var(--ink);
    font: 700 15px/1 var(--font-body); letter-spacing: .01em;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.pl-submit:hover { background: #8cf7d3; transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(94, 242, 192, .6); }
.pl-submit:active { transform: translateY(0); }
.pl-submit svg { transition: transform .2s ease; }
.pl-submit:hover svg { transform: translateX(3px); }
.form-login.is-busy .pl-submit { pointer-events: none; opacity: .75; }
.form-login.is-busy .pl-submit svg { animation: pl-spin .8s linear infinite; }
.pl-card-foot { margin: 18px 0 0; text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--chalk-3); letter-spacing: .04em; }

/* responsive ---------------------------------------------------------------- */
@media (max-width: 899.98px) {
    .pl-auth-stage { grid-template-columns: 1fr; gap: 28px; width: min(480px, 100%); }
    .pl-brand { text-align: left; }
    .pl-lede { font-size: 15px; }
    .pl-marks { display: none; }
    .pl-card { padding: 24px 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .pl-auth *, .pl-auth *::before, .pl-auth *::after { animation: none !important; transition: none !important; }
}
