/* VoidPrompt's local AuthShell composition, adapted to PRNext Host.
   Scoped to authentication; dashboard and terminal approval retain their UI. */
body.auth-view {
  background: var(--host-bg);
  color: var(--host-text);
}
.auth-view > .topbar,
.auth-view > .nav-shell,
.auth-view > .site-footer {
  display: none;
}
.auth-view #main-content {
  max-width: none;
  padding: 12px;
  min-height: 100dvh;
}
.auth-layout {
  display: grid;
  grid-template-columns: 44% 56%;
  min-height: calc(100dvh - 24px);
  border: 1px solid var(--host-border);
  border-radius: 24px;
  background: var(--host-surface);
  overflow: hidden;
}
.auth-visual {
  position: relative;
  min-width: 0;
  margin: 12px;
  margin-inline-end: 0;
  min-height: calc(100dvh - 50px);
  overflow: hidden;
  border-radius: 20px;
  background: var(--host-bg);
}
.auth-wordmark {
  position: absolute;
  z-index: 1;
  inset-block-start: 32px;
  inset-inline-start: 32px;
  padding-block: 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.6px;
}
.auth-artwork {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Only for reduced motion. Loading the interactive renderer stays blank. */
  --auth-shapes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='%23a296c2'%3E%3Ccircle cx='4' cy='4' r='1.7'/%3E%3Cpath d='M10 2h4v4h-4zM20 2l2 4h-4zM4 10l2 4H2z'/%3E%3Ccircle cx='12' cy='12' r='1.7'/%3E%3Cpath d='M18 10h4v4h-4zM2 18h4v4H2zM12 18l2 4h-4z'/%3E%3Ccircle cx='20' cy='20' r='1.7'/%3E%3C/g%3E%3C/svg%3E");
}
.auth-artwork-grid {
  position: absolute;
  inset: 0;
  background-image: var(--auth-shapes);
  opacity: .13;
  mask-image: radial-gradient(ellipse at 50% 52%, #000 4%, transparent 68%);
}
.auth-artwork-logo {
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  inset-inline-start: 0;
  inset-block-start: 50%;
  transform: translateY(-50%);
  background-image: var(--auth-shapes);
  mask: url("/logohost.png") center / 148% no-repeat;
  opacity: .7;
}
.auth-visual:hover .auth-artwork-logo {
  opacity: 1;
}
.auth-waves-mounted > .auth-artwork { display: none; }
.auth-waves-island { position: absolute; inset: 0; }
.auth-wave-fallback {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 600ms cubic-bezier(.22, 1, .36, 1);
}
.auth-wave-fallback[data-ready="true"] { opacity: 1; }
.auth-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 80px 48px;
}
.auth-home {
  position: absolute;
  inset-block-start: 24px;
  inset-inline-end: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding-inline: 4px;
  font-size: 12px;
  color: var(--host-subtle);
}
.auth-home:hover { color: var(--host-text); }
.auth-home .icon { width: 14px; height: 14px; }
.auth-form-wrap { width: 100%; max-width: 384px; }
.auth-mobile-brand { display: none; }
.auth-heading { margin-bottom: 24px; }
.auth-heading h1 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.6px;
}
.auth-heading p { color: var(--host-muted); font-size: 14px; margin-top: 8px; line-height: 1.5; }
.auth-form { display: flex; flex-direction: column; gap: 24px; }
.auth-form .field { gap: 6px; font-size: 14px; }
.auth-form .field label { color: #efefef; font-weight: 500; }
.auth-form .field input {
  min-height: 44px;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--host-surface);
  border-color: var(--host-field-border);
  box-shadow: 0 1px 2px #0000000d;
}
.auth-form .field input::placeholder { color: var(--host-placeholder); }
.auth-form .field input:hover { border-color: var(--host-border-hover); }
.auth-form .field input[aria-invalid="true"] { border-color: #ff9999; }
.auth-form .field input:focus-visible,
.auth-view button:focus-visible,
.auth-view a:focus-visible {
  outline: 2px solid var(--host-accent);
  outline-offset: 3px;
}
.auth-password { position: relative; }
.auth-password input { padding-inline-end: 48px !important; }
.auth-password-toggle {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--host-muted);
  border-radius: 10px;
}
.auth-password-toggle:hover { color: var(--host-text); }
.auth-eye-slash { display: none; }
[aria-pressed="true"] .auth-eye-slash { display: block; }
.auth-hint { font-size: 12px; color: var(--host-subtle); line-height: 1.5; }
.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  background: var(--host-button);
  box-shadow: var(--host-button-shadow);
}
.auth-submit:hover:not(:disabled) { background: var(--host-button-hover); }
.auth-submit:disabled { opacity: .75; }
.auth-submit-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff55;
  border-top-color: white;
  border-radius: 50%;
}
.auth-form[aria-busy="true"] .auth-submit-spinner { display: block; }
.auth-form .form-error:empty,
.auth-progress:empty { display: none; }
.auth-form .form-error { font-size: 13px; line-height: 1.5; }
.auth-progress { font-size: 13px; text-align: center; color: var(--host-muted); }
.auth-switch { margin-top: 28px; text-align: center; color: var(--host-muted); font-size: 14px; line-height: 1.7; }
.auth-switch button { color: var(--host-accent); min-height: 32px; padding-inline: 3px; }
.auth-switch button:hover { color: var(--host-accent-hover); }
@media (prefers-reduced-motion: no-preference) {
  .auth-artwork-logo { transition: opacity 180ms ease-out; }
  .auth-submit { transition: transform 120ms ease-out; }
  .auth-submit:active:not(:disabled) { transform: scale(.96); }
  .auth-form[aria-busy="true"] .auth-submit-spinner { animation: auth-spin .8s linear infinite; }
}
@keyframes auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .auth-artwork { display: block; }
  .auth-wave-fallback { transition: none; }
}
@media (max-width: 1023px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-content { padding: 88px 40px; }
  .auth-mobile-brand { display: flex; width: fit-content; margin: 0 auto 40px; font-size: 24px; }
}
@media (max-width: 639px) {
  .auth-view #main-content { padding: 8px; }
  .auth-layout { min-height: calc(100dvh - 16px); }
  .auth-content { padding: 80px 24px 48px; }
  .auth-home { inset-block-start: 12px; inset-inline-end: 16px; }
  .auth-form .field input { font-size: 16px; }
  .auth-switch button { min-height: 44px; }
}
@media (forced-colors: active) {
  .auth-artwork { display: none; }
  .auth-submit { border: 1px solid ButtonText; }
  .auth-view a:focus-visible,
  .auth-view button:focus-visible,
  .auth-form .field input:focus-visible { outline-color: Highlight; }
}
