/* ==========================================================================
   AI-Morphism Design System
   Dark, gradient-lit, frosted-glass surfaces with a soft neon glow — built to
   feel like a modern AI product rather than a stock admin template.
   ========================================================================== */

:root {
  --am-bg-1: #0a0e27;
  --am-bg-2: #150a2e;
  --am-bg-3: #05070f;
  --am-accent-cyan: #22d3ee;
  --am-accent-violet: #a78bfa;
  --am-accent-pink: #f472b6;
  --am-glass-border: rgba(255, 255, 255, 0.08);
  --am-glass-fill: rgba(255, 255, 255, 0.06);
}

.am-canvas {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, var(--am-bg-2), var(--am-bg-1) 45%, var(--am-bg-3) 100%);
}

/* Floating glow orbs — pure CSS, no JS/canvas needed */
.am-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  animation: am-float 14s ease-in-out infinite;
}
.am-orb-1 { width: 420px; height: 420px; top: -100px; left: -80px; background: var(--am-accent-violet); }
.am-orb-2 { width: 360px; height: 360px; bottom: -120px; right: -60px; background: var(--am-accent-cyan); animation-delay: -6s; }
.am-orb-3 { width: 280px; height: 280px; top: 40%; left: 60%; background: var(--am-accent-pink); animation-delay: -3s; opacity: 0.2; }

@keyframes am-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.08); }
}

/* Frosted glass card */
.am-glass {
  position: relative;
  background: var(--am-glass-fill);
  border: 1px solid var(--am-glass-border);
  border-radius: 1.25rem;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Gradient hairline border effect, layered under .am-glass */
.am-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(167,139,250,0.5), rgba(34,211,238,0.15), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.am-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.am-input::placeholder { color: rgba(241, 245, 249, 0.4); }
.am-input:focus {
  outline: none;
  border-color: var(--am-accent-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.am-btn-primary {
  width: 100%;
  border: none;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: #0a0e27;
  background: linear-gradient(135deg, var(--am-accent-cyan), var(--am-accent-violet));
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.am-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(167, 139, 250, 0.35); }
.am-btn-primary:active { transform: translateY(0); }
.am-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.am-label { color: rgba(241, 245, 249, 0.75); font-size: 0.825rem; font-weight: 500; margin-bottom: 0.35rem; display: block; }
.am-error { color: #fca5a5; font-size: 0.8rem; margin-top: 0.35rem; }
.am-link { color: var(--am-accent-cyan); text-decoration: none; }
.am-link:hover { text-decoration: underline; }
