/*
 * Parke Auth Stylesheet
 * Matches the dark design system used in the Parke landing page.
 * Loaded exclusively by app/views/layouts/devise.html.erb
 *
 * Design tokens:
 *   Background  #0a0a0f
 *   Surface     #0d0d1a
 *   Cyan        #00d4ff  (primary action)
 *   Amber       #f5a623  (secondary / operator)
 *   Text        #eeeeff
 *   Muted       rgba(238,238,255,0.45)
 *   Border      rgba(255,255,255,0.07)
 *
 * Fonts: Syne (headings) + Outfit (body) — loaded via Google Fonts in the layout
 */

/* ── RESET / BASE ──────────────────────────────────────────── */

.parke-auth-body {
  background-color: #0a0a0f !important;
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(0, 212, 255, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(245, 166, 35, 0.05) 0%, transparent 55%),
    radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px) !important;
  background-size: auto, auto, 28px 28px !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  color: #eeeeff !important;
}

/* ── CARD ──────────────────────────────────────────────────── */

.parke-auth-body .bg-white {
  background: rgba(255, 255, 255, 0.025) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 32px 80px rgba(0, 0, 0, 0.6) !important;
}

/* ── TYPOGRAPHY ────────────────────────────────────────────── */

.parke-auth-body h1 {
  font-family: "Syne", system-ui, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: #eeeeff !important;
}

.parke-auth-body .text-gray-900 { color: #eeeeff !important; }
.parke-auth-body .text-gray-700 { color: rgba(238, 238, 255, 0.55) !important; }
.parke-auth-body .text-gray-600 { color: rgba(238, 238, 255, 0.38) !important; }
.parke-auth-body .text-gray-500 { color: rgba(238, 238, 255, 0.3)  !important; }

/* Minimum password hint */
.parke-auth-body .text-xs.text-gray-500 {
  color: rgba(238, 238, 255, 0.3) !important;
  font-size: 0.72rem !important;
}

/* ── LOGO / BRAND HEADER ───────────────────────────────────── */

.parke-auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 32px;
  text-decoration: none;
}

.parke-auth-logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #00d4ff, #0090cc);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: #060610;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.35);
  flex-shrink: 0;
}

.parke-auth-logo-name {
  font-family: "Syne", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #eeeeff;
}

/* ── FORM LABELS ───────────────────────────────────────────── */

.parke-auth-body label,
.parke-auth-body .block.text-sm.font-medium {
  font-family: "Syne", system-ui, sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: rgba(238, 238, 255, 0.4) !important;
  margin-bottom: 8px !important;
}

/* ── INPUTS ────────────────────────────────────────────────── */

.parke-auth-body input[type="email"],
.parke-auth-body input[type="password"],
.parke-auth-body input[type="text"] {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 10px !important;
  color: #eeeeff !important;
  font-family: "Outfit", system-ui, sans-serif !important;
  font-size: 0.9rem !important;
  padding: 13px 14px 13px 44px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  outline: none !important;
}

.parke-auth-body input[type="email"]:focus,
.parke-auth-body input[type="password"]:focus,
.parke-auth-body input[type="text"]:focus {
  border-color: rgba(0, 212, 255, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08) !important;
  background: rgba(0, 212, 255, 0.03) !important;
}

/* Placeholder text */
.parke-auth-body input::placeholder {
  color: rgba(238, 238, 255, 0.2) !important;
}

/* Input icons (the svg wrappers) */
.parke-auth-body .absolute svg {
  color: rgba(238, 238, 255, 0.25) !important;
  stroke: rgba(238, 238, 255, 0.25) !important;
}

.parke-auth-body input:focus + .absolute svg,
.parke-auth-body input:focus ~ .absolute svg {
  stroke: rgba(0, 212, 255, 0.6) !important;
}

/* Tailwind ring overrides */
.parke-auth-body .focus\:ring-indigo-500:focus,
.parke-auth-body .focus\:border-indigo-500:focus {
  --tw-ring-color: rgba(0, 212, 255, 0.3) !important;
  border-color: rgba(0, 212, 255, 0.45) !important;
}

/* ── CHECKBOX (remember me) ────────────────────────────────── */

.parke-auth-body input[type="checkbox"] {
  accent-color: #00d4ff !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  width: 16px !important;
  height: 16px !important;
}

/* ── SUBMIT BUTTON ─────────────────────────────────────────── */

.parke-auth-body input[type="submit"],
.parke-auth-body button[type="submit"] {
  background: linear-gradient(135deg, #00d4ff, #009bcc) !important;
  color: #060610 !important;
  font-family: "Syne", system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.03em !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px 24px !important;
  box-shadow:
    0 0 28px rgba(0, 212, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.parke-auth-body input[type="submit"]:hover,
.parke-auth-body button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow:
    0 0 44px rgba(0, 212, 255, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  background: linear-gradient(135deg, #19daff, #00b8e8) !important;
}

/* Override the Tailwind indigo button classes */
.parke-auth-body .bg-indigo-600 {
  background: linear-gradient(135deg, #00d4ff, #009bcc) !important;
  color: #060610 !important;
  border-radius: 12px !important;
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.28) !important;
}

.parke-auth-body .hover\:bg-indigo-700:hover,
.parke-auth-body .bg-indigo-600:hover {
  background: linear-gradient(135deg, #19daff, #00b8e8) !important;
  transform: translateY(-2px) !important;
}

/* ── LINKS ─────────────────────────────────────────────────── */

.parke-auth-body a,
.parke-auth-body .text-indigo-600 {
  color: #00d4ff !important;
  transition: color 0.2s ease !important;
}

.parke-auth-body a:hover,
.parke-auth-body .text-indigo-600:hover,
.parke-auth-body .hover\:text-indigo-500:hover {
  color: rgba(0, 212, 255, 0.75) !important;
}

/* "Forgot password?" – keep it subtle */
.parke-auth-body .text-sm.font-medium.text-indigo-600 {
  font-size: 0.82rem !important;
  font-weight: 500 !important;
}

/* Sign up / Sign in bottom link */
.parke-auth-body .mt-6.text-center p {
  color: rgba(238, 238, 255, 0.35) !important;
  font-size: 0.85rem !important;
}

/* ── ERROR MESSAGES ────────────────────────────────────────── */

/* devise/shared/_error_messages */
.parke-auth-body #error_explanation {
  background: rgba(239, 68, 68, 0.06) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  margin-bottom: 20px !important;
}

.parke-auth-body #error_explanation h2 {
  font-family: "Syne", system-ui, sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: rgba(248, 113, 113, 0.9) !important;
  margin-bottom: 10px !important;
}

.parke-auth-body #error_explanation ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.parke-auth-body #error_explanation li {
  font-size: 0.85rem !important;
  color: rgba(252, 165, 165, 0.8) !important;
  font-weight: 300 !important;
  padding-left: 14px !important;
  position: relative !important;
}

.parke-auth-body #error_explanation li::before {
  content: "—" !important;
  position: absolute !important;
  left: 0 !important;
  color: rgba(248, 113, 113, 0.5) !important;
}

/* Field with errors */
.parke-auth-body .field_with_errors input {
  border-color: rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08) !important;
}

/* ── FLASH MESSAGES ────────────────────────────────────────── */

/* Notice (info) */
.parke-auth-body #flash-notice {
  background: rgba(0, 212, 255, 0.06) !important;
  border: 1px solid rgba(0, 212, 255, 0.22) !important;
  color: rgba(0, 212, 255, 0.9) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.parke-auth-body #flash-notice svg { color: #00d4ff !important; }
.parke-auth-body #flash-notice button { color: rgba(0, 212, 255, 0.5) !important; }
.parke-auth-body #flash-notice button:hover { color: #00d4ff !important; }

/* Alert (error) */
.parke-auth-body #flash-alert {
  background: rgba(239, 68, 68, 0.06) !important;
  border: 1px solid rgba(239, 68, 68, 0.22) !important;
  color: rgba(252, 165, 165, 0.9) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4) !important;
}

.parke-auth-body #flash-alert svg { color: rgba(248, 113, 113, 0.8) !important; }
.parke-auth-body #flash-alert button { color: rgba(248, 113, 113, 0.5) !important; }
.parke-auth-body #flash-alert button:hover { color: rgba(248, 113, 113, 0.9) !important; }

/* ── DIVIDERS ──────────────────────────────────────────────── */

.parke-auth-body .mt-6 {
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
  padding-top: 24px !important;
}

/* ── CARD SPACING TWEAKS ───────────────────────────────────── */

.parke-auth-body .text-center.mb-8 h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem) !important;
  margin-bottom: 10px !important;
}

/* ── REMEMBER ME LABEL ─────────────────────────────────────── */

.parke-auth-body .flex.items-center label {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.85rem !important;
  color: rgba(238, 238, 255, 0.45) !important;
}
