'use client'

/**
 * Rendered at the admin mount for signed-out visitors on split-login installs
 * (`config.admin.loginPath` set). Mimics the framework's default 404 page so
 * hitting `/admin` reveals nothing — no login form, no admin branding, and no
 * redirect that would leak the real login location.
 */
export function HiddenLoginNotFound() {
  return (
    <div
      style={{
        fontFamily: 'system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',
        height: '100vh',
        display: 'flex',
        alignItems: 'center',
        justifyContent: 'center',
        background: '#fff',
        color: '#000',
        textAlign: 'center',
      }}
    >
      <div style={{ display: 'flex', alignItems: 'center', lineHeight: '49px' }}>
        <h1
          style={{
            display: 'inline-block',
            margin: '0 20px 0 0',
            paddingRight: 23,
            fontSize: 24,
            fontWeight: 500,
            verticalAlign: 'top',
            borderRight: '1px solid rgba(0, 0, 0, .3)',
          }}
        >
          404
        </h1>
        <div style={{ display: 'inline-block' }}>
          <h2 style={{ margin: 0, fontSize: 14, fontWeight: 400, lineHeight: '49px' }}>
            This page could not be found.
          </h2>
        </div>
      </div>
    </div>
  )
}
