/* Navix Admin Login - fluid dark glass card
   - Flowing gradients that blend with the hero background
   - Glassmorphism card with brand orange glow
   - Inputs and buttons adapted for a dark surface */

:root {
  --nx-orange: #ff7a00;
  --nx-orange-light: #ff9c3c;
  --nx-navy: #0a1a2f;
  --nx-night: #050c1a;
  --nx-ink: #0e1f39;
  --nx-text: #e7edf7;
  --nx-muted: #9cb1cd;
  --nx-stroke: rgba(255, 255, 255, 0.08);
  --nx-surface: rgba(255, 255, 255, 0.05);
  --nx-surface-strong: rgba(7, 16, 30, 0.82);
  --nx-glow: rgba(255, 122, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }

/* Background layer: image + darker gradient overlay */
.nx-bg {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 122, 0, 0.07), transparent 32%),
    linear-gradient(130deg, rgba(5, 12, 26, 0.94), rgba(10, 26, 47, 0.86)),
    url("../fleet/login_bg.737887209cb4.jpg") center/cover no-repeat fixed;
  position: relative;
  color: var(--nx-text);
}
.nx-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 26, 47, 0.72), rgba(255, 122, 0, 0.16));
  pointer-events: none;
}
.nx-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 80% 70%, rgba(255, 122, 0, 0.12), transparent 35%);
  pointer-events: none;
}

/* Centered layout */
.nx-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }

@keyframes nx-rise { 0% { transform: translateY(10px) scale(.98); opacity: 0; } 100% { transform: translateY(0) scale(1); opacity: 1; } }

/* Card with flowing glow */
.nx-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 22px;
  padding: 26px 24px 22px;
  background: linear-gradient(155deg, rgba(7, 16, 30, 0.92), rgba(9, 22, 42, 0.78));
  border: 1px solid var(--nx-stroke);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(16px);
  overflow: hidden;
  isolation: isolate;
  animation: nx-rise 420ms ease both;
}
.nx-card::before {
  content: "";
  position: absolute;
  inset: -18% -26% 38% -26%;
  background: radial-gradient(ellipse at 40% 60%, var(--nx-glow), transparent 55%);
  filter: blur(22px);
  opacity: 0.9;
  z-index: 0;
}
.nx-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  z-index: 0;
}
.nx-card--flow {
  background: linear-gradient(140deg, rgba(6, 14, 26, 0.94), rgba(11, 24, 42, 0.78));
}
.nx-card--flow .nx-logo,
.nx-card--flow .nx-card__copy,
.nx-card--flow form { position: relative; z-index: 1; }

.nx-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.nx-card__copy { display: flex; flex-direction: column; gap: 4px; }
.nx-eyebrow { margin: 0; font: 700 0.8rem/1 Montserrat, system-ui, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nx-muted); }

/* Header */
.nx-logo { display: block; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35)); }
.nx-sub { margin: 2px 0 4px; font: 600 1.02rem/1.35 Montserrat, system-ui, sans-serif; color: var(--nx-text); }

/* Alerts */
.nx-alert {
  background: rgba(255, 122, 0, 0.12);
  color: #ffe4c7;
  border: 1px solid rgba(255, 122, 0, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 12px 0 10px;
}

/* Form */
.nx-label {
  display: block;
  margin: 12px 2px 6px;
  font: 600 0.95rem/1.1 Montserrat, system-ui, sans-serif;
  color: var(--nx-text);
}
.nx-input {
  width: 100%;
  max-width: 100%;
  display: block;
  border: 1px solid var(--nx-stroke);
  border-radius: 12px;
  background: var(--nx-surface);
  color: var(--nx-text);
  padding: 12px 14px;
  font: 500 1rem/1.2 Montserrat, system-ui, sans-serif;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}
.nx-input::placeholder { color: var(--nx-muted); }
.nx-input:focus {
  outline: none;
  border-color: var(--nx-orange);
  box-shadow: 0 0 0 0.2rem rgba(255, 122, 0, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

/* Actions */
.nx-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 18px; }
.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 12px;
  font: 700 1rem/1 Montserrat, system-ui, sans-serif;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
  position: relative;
  overflow: hidden;
}
.nx-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.18s ease;
}
.nx-btn:hover::after { opacity: 0.6; }
.nx-btn--primary {
  background: linear-gradient(120deg, var(--nx-orange), var(--nx-orange-light));
  color: #0c1424;
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(255, 122, 0, 0.24);
}
.nx-btn--primary:hover { transform: translateY(-1px); }
.nx-btn--outline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--nx-text);
  border-color: var(--nx-stroke);
}
.nx-btn--outline:hover {
  border-color: var(--nx-orange);
  color: var(--nx-orange-light);
  transform: translateY(-1px);
}

/* Mobile responsiveness */
@media (max-width: 520px) {
  .nx-card { padding: 22px 16px 18px; border-radius: 18px; }
  .nx-card__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nx-logo { width: 160px; height: auto; }
}
