/* GuardianOne — Atlas Soft authentication (logo navy + teal) */

:root {
  --nv-dark: #0A2540;
  --nv-indigo: #0E3048;
  --nv-primary: #00B8A9;
  --nv-accent: #00D4C8;
  --nv-grad: linear-gradient(135deg, #0A2540 0%, #0E6B7A 48%, #00B8A9 100%);
  --nv-auth-fg: #0A2540;
  --nv-auth-bg: #EEF4F6;
  --nv-auth-hero-fg: #ffffff;
  --nv-auth-panel-bg: #F5F9FA;
  --nv-auth-card-bg: #ffffff;
  --nv-auth-card-border: rgba(10, 37, 64, 0.10);
  --nv-auth-muted: #5A7184;
  --nv-auth-label: #1E3A52;
  --nv-auth-input-bg: #F3F8F9;
  --nv-auth-input-border: rgba(10, 37, 64, 0.12);
  --nv-auth-input-fg: #0A2540;
  --nv-auth-autofill: #F3F8F9;
  --nv-radius: 18px;
  --nv-radius-sm: 12px;
  --nv-font: "Montserrat", system-ui, sans-serif;
  --nv-display: "Montserrat", system-ui, sans-serif;
}

html[data-nv-theme="dark"] {
  color-scheme: dark;
  --nv-auth-fg: #E8F2F6;
  --nv-auth-bg: #0B1520;
  --nv-auth-hero-fg: #ffffff;
  --nv-auth-panel-bg: #0F1A26;
  --nv-auth-card-bg: #12202E;
  --nv-auth-card-border: rgba(232, 242, 246, 0.12);
  --nv-auth-muted: #8FA6B5;
  --nv-auth-label: #8FA6B5;
  --nv-auth-input-bg: #1A2C3D;
  --nv-auth-input-border: rgba(232, 242, 246, 0.12);
  --nv-auth-input-fg: #E8F2F6;
  --nv-auth-autofill: #1A2C3D;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--nv-font);
  background: var(--nv-auth-bg);
  color: var(--nv-auth-fg);
}

.nv-auth-theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--nv-auth-card-border);
  background: var(--nv-auth-card-bg);
  color: var(--nv-auth-fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(22, 28, 44, 0.10);
}

.nv-auth-theme-toggle .nv-theme-ico-sun { display: none; }
.nv-auth-theme-toggle .nv-theme-ico-moon { display: block; }
html[data-nv-theme="dark"] .nv-auth-theme-toggle .nv-theme-ico-sun { display: block; }
html[data-nv-theme="dark"] .nv-auth-theme-toggle .nv-theme-ico-moon { display: none; }

.wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 460px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.75rem;
  color: var(--nv-auth-hero-fg);
  background:
    radial-gradient(ellipse 65% 50% at 35% 45%, rgba(0, 184, 169, 0.30), transparent 62%),
    radial-gradient(ellipse 45% 38% at 78% 70%, rgba(0, 212, 200, 0.14), transparent 55%),
    linear-gradient(155deg, #071828 0%, #0A2540 48%, #0E3A52 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(circle at 40% 48%, rgba(255,255,255,0.07), transparent 42%),
    radial-gradient(circle at 72% 62%, rgba(0, 184, 169, 0.16), transparent 48%);
  pointer-events: none;
  animation: nv-auth-glow 10s ease-in-out infinite alternate;
}

@keyframes nv-auth-glow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  to { transform: translate3d(2%, -1.5%, 0) scale(1.04); opacity: 1; }
}

@keyframes nv-auth-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero > *,
.hero-stage {
  position: relative;
  z-index: 1;
}

.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
  max-width: 36rem;
  animation: nv-auth-rise 0.7s ease both;
}

.hero-stage .brand-lockup {
  animation: nv-auth-rise 0.65s ease both;
}

.hero-stage h1 {
  animation: nv-auth-rise 0.7s ease 0.08s both;
}

.hero-stage p {
  animation: nv-auth-rise 0.7s ease 0.14s both;
}

/* Auth pages without .hero-stage still stack as one centred block */
.hero > .brand-lockup,
.hero > div:not(.hero-stage) {
  animation: nv-auth-rise 0.65s ease both;
}

.hero > div:not(.hero-stage) {
  animation-delay: 0.08s;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--nv-display);
  font-size: clamp(2.35rem, 4.6vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 12ch;
  color: #fff;
}

.hero p {
  margin: 0;
  max-width: 32ch;
  font-size: 1.08rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 500;
}

.hero-meta {
  display: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  width: max-content;
  position: relative;
  margin: 0;
}

.brand-lockup img {
  height: 78px;
  width: auto;
  max-width: min(340px, 74vw);
  object-fit: contain;
}

/* Hero = white logo; cards/panels = color logo */
.brand-lockup-color { display: none; }
.brand-lockup-white { display: none; }
.hero .brand-lockup-white { display: block; }

.panel {
  position: relative;
  background: var(--nv-auth-panel-bg);
  border-left: 1px solid var(--nv-auth-card-border);
  display: flex;
  align-items: center;
  padding: 2rem 1.5rem;
}

.card {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: var(--nv-auth-card-bg);
  border: 1px solid var(--nv-auth-card-border);
  border-radius: var(--nv-radius);
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 2px rgba(22, 28, 44, 0.04), 0 14px 32px rgba(22, 28, 44, 0.08);
  color: var(--nv-auth-fg);
}

/* Color logo sits on the light auth card (brand moment on the action surface) */
.card::before {
  content: "";
  display: block;
  height: 48px;
  margin: 0 0 1.25rem;
  background: url("logo/guardianone-logo-color.png") left center / contain no-repeat;
}

html[data-nv-theme="dark"] .card::before {
  /* White lockup — navy wordmark disappears on dark cards */
  background-image: url("logo/guardianone-logo-white.png");
  height: 48px;
}

.card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--nv-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.card .sub {
  margin: 0 0 1.75rem;
  color: var(--nv-auth-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--nv-auth-label);
}

.field input,
.field select {
  display: block;
  width: 100%;
  height: 50px;
  padding: 0 0.95rem;
  border: 1px solid var(--nv-auth-input-border);
  border-radius: var(--nv-radius-sm);
  background: var(--nv-auth-input-bg);
  color: var(--nv-auth-input-fg);
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: rgba(0, 184, 169, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 184, 169, 0.14);
  background: #fff;
}

html[data-nv-theme="dark"] .field input:focus,
html[data-nv-theme="dark"] .field select:focus {
  background: #232A3D;
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--nv-auth-input-fg) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--nv-auth-autofill) inset !important;
  box-shadow: 0 0 0 1000px var(--nv-auth-autofill) inset !important;
  caret-color: var(--nv-auth-input-fg);
  transition: background-color 5000s ease-in-out 0s;
}

.field .text-danger,
.text-danger,
.validation-summary-errors {
  display: block;
  margin-top: 0.35rem;
  color: #E25555 !important;
  font-size: 0.85rem;
  font-weight: 600;
}

.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.1rem;
}

.btn-go {
  display: block;
  width: 100%;
  height: 50px;
  margin-top: 0.35rem;
  border: 0;
  border-radius: var(--nv-radius-sm);
  cursor: pointer;
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 0.95rem;
  background: var(--nv-primary);
  box-shadow: 0 8px 18px rgba(0, 184, 169, 0.22);
}

.btn-go:hover { filter: brightness(1.05); }

.links {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
}

.links a {
  color: var(--nv-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
}

.links a:hover { text-decoration: underline; }

.note {
  margin: 1.35rem 0 0;
  padding: 1rem;
  border-radius: var(--nv-radius-sm);
  border: 1px solid var(--nv-auth-card-border);
  background: rgba(0, 184, 169, 0.06);
  color: var(--nv-auth-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .wrap { grid-template-columns: 1fr; }
  .hero {
    min-height: 0;
    padding: 1.75rem 1.5rem 1.5rem;
    gap: 1rem;
  }
  .hero h1 { max-width: none; font-size: 1.85rem; }
  .hero p { font-size: 0.98rem; max-width: 40ch; }
  .brand-lockup img { height: 56px; }
  .panel {
    border-left: 0;
    border-top: 1px solid var(--nv-auth-card-border);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero > * {
    animation: none !important;
  }
}
