/* Login screen — first impression. Centred panel on a soft gradient
 * background, brand-orange film icon, generous breathing room.
 */

html, body { height: 100%; }

body {
    display: flex;
    align-items: center;
    padding: 40px 16px;
    margin: 0;
}

/* Subtle radial gradient on the page background — gives the login
 * screen a sense of depth without distracting from the form. */
html[data-bs-theme="dark"] body {
    background:
        radial-gradient(circle at 20% 0%, rgba(229, 160, 13, 0.08), transparent 45%),
        radial-gradient(circle at 80% 100%, rgba(74, 158, 255, 0.06), transparent 50%),
        var(--plex-gray, #1a1a2e);
}
html[data-bs-theme="light"] body {
    /* Cool slate base matching --bs-body-bg + a single quiet slate
       radial for a hint of depth. The previous warm orange wash in
       the upper-left clashed with the cool slate palette and read as
       an accidental tint rather than intentional depth. Brand orange
       is reserved for the CTA + film-strip logo on this page. */
    background:
        radial-gradient(circle at 80% 100%, rgba(15, 23, 42, 0.04), transparent 55%),
        #e4e7eb;
}

.form-signin {
    max-width: 420px;
    padding: 0;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

/* Card uses the global .card panel style + a stronger shadow so it
 * floats on the gradient background. */
.login-card {
    box-shadow: var(--shadow-2);
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-container i {
    font-size: 3.5rem;
    color: var(--plex-orange);
    line-height: 1;
}

.logo-container h1 {
    margin-top: 0.85rem;
    margin-bottom: 0.25rem;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* "How do I find my token?" list — three icons + lines, more visual
 * structure than plain bullets. */
.login-help-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
}
.login-help-list li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    line-height: 1.45;
}
.login-help-list li + li { margin-top: 0.1rem; }
.login-help-list li:hover { background: var(--surface-1); }
.login-help-list li > .bi {
    color: var(--plex-orange);
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
/* Light mode: quiet slate icons so they don't fight the orange CTA.
 * Dark mode keeps the brand orange because it pops on navy. */
html[data-bs-theme="light"] .login-help-list li > .bi {
    color: var(--bs-secondary-color);
}

.login-help-summary {
    cursor: pointer;
    user-select: none;
    padding: 0.3rem 0;
}
.login-help-summary:hover { color: var(--bs-body-color); }

.login-help-detail {
    line-height: 1.6;
}

.login-help-snippet {
    background-color: var(--surface-1);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.75rem;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.78rem;
    margin: 0.4rem 0 0.4rem;
    white-space: pre-wrap;
    color: var(--bs-body-color);
}
