/* ═══════════════════════════════════════════════════════════════════
   NexoCodee Auth — Cinematic Premium Design System v2.0
   Color Palette: Gold #FFB923, Navy #14202e, Steel #263b4e
   ═══════════════════════════════════════════════════════════════════ */

/* ── Auth-scoped tokens ── */
.nexo-auth {
  --auth-gold:        #FFB923;
  --auth-gold-dark:   #E5A000;
  --auth-gold-light:  #FFD466;
  --auth-gold-dim:    rgba(255,185,35,0.12);
  --auth-gold-glow:   rgba(255,185,35,0.25);
  --auth-purple:      #263b4e;
  --auth-cyan:        #3f5a70;
  --auth-bg:          #0b1620;
  --auth-surface:     #14202e;
  --auth-card:        rgba(255,255,255,0.035);
  --auth-border:      rgba(255,255,255,0.06);
  --auth-border-gold: rgba(255,185,35,0.18);
  --auth-text:        #f8f9fa;
  --auth-text-dim:    rgba(248,249,250,0.55);
  --auth-text-muted:  rgba(248,249,250,0.28);
  --auth-success:     #10b981;
  --auth-error:       #ef4444;
}

/* ══════════════════════════════════════════
   ROOT LAYOUT
   ══════════════════════════════════════════ */
.nexo-auth {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
  background: var(--auth-bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--auth-text);
}

/* ══════════════════════════════════════════
   CANVAS — Animated Background
   ══════════════════════════════════════════ */
.nexo-auth__canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Noise texture overlay */
.nexo-auth__canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
  z-index: 1;
}

/* Gradient Mesh Orbs */
.nexo-auth__canvas-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform, opacity;
  mix-blend-mode: screen;
}

.nexo-auth__canvas-blob--1 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle at center,
    rgba(255,185,35,0.15) 0%,
    rgba(255,185,35,0.06) 40%,
    transparent 70%);
  top: -30%;
  right: -20%;
  animation: auth-blob-1 28s ease-in-out infinite;
}

.nexo-auth__canvas-blob--2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at center,
    rgba(38,59,78,0.55) 0%,
    rgba(38,59,78,0.18) 40%,
    transparent 70%);
  bottom: -25%;
  left: -15%;
  animation: auth-blob-2 22s ease-in-out infinite;
}

.nexo-auth__canvas-blob--3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at center,
    rgba(238,188,77,0.08) 0%,
    transparent 65%);
  top: 35%;
  left: 35%;
  animation: auth-blob-3 35s ease-in-out infinite 4s;
}

/* Fine dot grid */
.nexo-auth__canvas-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

/* Diagonal scan line */
.nexo-auth__canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255,185,35,0.012) 50%,
    transparent 100%
  );
  background-size: 100% 4px;
  animation: auth-scan 12s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes auth-blob-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-60px, 80px) scale(1.12); }
  66%       { transform: translate(40px, -50px) scale(0.9); }
}
@keyframes auth-blob-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(70px, -60px) scale(1.1); }
  70%       { transform: translate(-40px, 40px) scale(0.93); }
}
@keyframes auth-blob-3 {
  0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
  50%       { transform: translate(-30px, -40px) scale(1.08) rotate(5deg); }
}
@keyframes auth-scan {
  0%   { transform: translateY(-100vh); }
  100% { transform: translateY(100vh); }
}

/* ══════════════════════════════════════════
   SPLIT LAYOUT
   ══════════════════════════════════════════ */
.nexo-auth__split {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════
   BRAND PANEL — Left Side
   ══════════════════════════════════════════ */
.nexo-auth__brand {
  display: none;
  flex: 1.1;
  flex-direction: column;
  justify-content: space-between;
  padding: 60px 70px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .nexo-auth__brand { display: flex; }
}

/* Vertical separator */
.nexo-auth__brand::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 0;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255,185,35,0.15) 25%,
    rgba(255,185,35,0.08) 75%,
    transparent
  );
}

/* Brand top — logo nav */
.nexo-auth__brand-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: auth-fade-in-up 0.8s cubic-bezier(0.22,1,0.36,1) both;
}

.nexo-auth__brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nexo-auth__brand-logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--auth-gold), var(--auth-gold-dark));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #000;
  box-shadow:
    0 0 0 1px rgba(255,185,35,0.3),
    0 8px 32px rgba(255,185,35,0.25);
  transition: transform 0.4s cubic-bezier(.19,1,.22,1), box-shadow 0.3s;
}

.nexo-auth__brand-logo:hover .nexo-auth__brand-logo-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 0 1px rgba(255,185,35,0.5), 0 12px 40px rgba(255,185,35,0.35);
}

.nexo-auth__brand-logo-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--auth-text);
  letter-spacing: -0.03em;
}

.nexo-auth__brand-logo-name span {
  color: var(--auth-gold);
}

.nexo-auth__brand-back {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--auth-text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.25s, gap 0.25s;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.nexo-auth__brand-back:hover {
  color: var(--auth-text-dim);
  gap: 10px;
  border-color: var(--auth-border);
  background: var(--auth-card);
}

.nexo-auth__brand-back svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s;
}

.nexo-auth__brand-back:hover svg { transform: translateX(-3px); }

/* Brand center — hero copy */
.nexo-auth__brand-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
  animation: auth-fade-in-up 0.9s cubic-bezier(0.22,1,0.36,1) 0.1s both;
}

.nexo-auth__brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: rgba(255,185,35,0.06);
  border: 1px solid rgba(255,185,35,0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--auth-gold-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 28px;
  width: fit-content;
}

.nexo-auth__brand-pill-dot {
  width: 6px;
  height: 6px;
  background: var(--auth-gold);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--auth-gold);
  animation: auth-pulse-dot 2.5s ease-in-out infinite;
}

@keyframes auth-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px var(--auth-gold); }
  50%       { opacity: 0.6; transform: scale(0.75); box-shadow: 0 0 4px var(--auth-gold); }
}

.nexo-auth__brand-headline {
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--auth-text);
  margin-bottom: 24px;
}

.nexo-auth__brand-headline em {
  font-style: normal;
  color: var(--auth-gold);
  display: inline-block;
}

.nexo-auth__brand-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--auth-text-dim);
  max-width: 420px;
  margin-bottom: 48px;
}

/* Feature list */
.nexo-auth__brand-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 52px;
}

.nexo-auth__brand-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--auth-text-dim);
  animation: auth-fade-in-up 0.8s cubic-bezier(0.22,1,0.36,1) both;
}

.nexo-auth__brand-feature:nth-child(1) { animation-delay: 0.35s; }
.nexo-auth__brand-feature:nth-child(2) { animation-delay: 0.45s; }
.nexo-auth__brand-feature:nth-child(3) { animation-delay: 0.55s; }

.nexo-auth__brand-feature-icon {
  width: 32px;
  height: 32px;
  background: rgba(255,185,35,0.08);
  border: 1px solid rgba(255,185,35,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.nexo-auth__brand-feature:hover .nexo-auth__brand-feature-icon {
  background: rgba(255,185,35,0.14);
  border-color: rgba(255,185,35,0.25);
  transform: scale(1.1);
}

.nexo-auth__brand-feature-icon svg {
  width: 15px;
  height: 15px;
  color: var(--auth-gold);
}

/* Stats strip */
.nexo-auth__brand-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--auth-border);
  border: 1px solid var(--auth-border);
  border-radius: 20px;
  overflow: hidden;
  animation: auth-fade-in-up 0.9s cubic-bezier(0.22,1,0.36,1) 0.6s both;
}

.nexo-auth__brand-stat {
  background: var(--auth-surface);
  padding: 22px 20px;
  text-align: center;
  transition: background 0.3s;
}

.nexo-auth__brand-stat:hover { background: rgba(255,185,35,0.04); }

.nexo-auth__brand-stat-value {
  display: block;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--auth-gold);
  line-height: 1;
  margin-bottom: 6px;
}

.nexo-auth__brand-stat-label {
  font-size: 11px;
  color: var(--auth-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Brand bottom — trust bar */
.nexo-auth__brand-bottom {
  animation: auth-fade-in-up 0.8s cubic-bezier(0.22,1,0.36,1) 0.7s both;
}

.nexo-auth__brand-trust {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nexo-auth__brand-avatars {
  display: flex;
}

.nexo-auth__brand-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--auth-bg);
  background: linear-gradient(135deg, var(--auth-gold-dark), var(--auth-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-right: -8px;
  position: relative;
  z-index: 1;
  transition: transform 0.2s, z-index 0s;
}

.nexo-auth__brand-avatar:hover {
  transform: translateY(-4px) scale(1.1);
  z-index: 10;
}

.nexo-auth__brand-avatar:nth-child(1) { background: linear-gradient(135deg, #FFB923, #E5A000); z-index: 4; }
.nexo-auth__brand-avatar:nth-child(2) { background: linear-gradient(135deg, #263b4e, #14202e); z-index: 3; }
.nexo-auth__brand-avatar:nth-child(3) { background: linear-gradient(135deg, #eebc4d, #c68e1f); z-index: 2; }
.nexo-auth__brand-avatar:nth-child(4) { background: linear-gradient(135deg, #10b981, #059669); z-index: 1; }

.nexo-auth__brand-trust-text {
  font-size: 13px;
  color: var(--auth-text-muted);
  line-height: 1.5;
}

.nexo-auth__brand-trust-text strong {
  color: var(--auth-text-dim);
  font-weight: 600;
}

/* ══════════════════════════════════════════
   FORM PANEL — Right Side
   ══════════════════════════════════════════ */
.nexo-auth__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0.9;
  padding: 40px 24px;
  position: relative;
}

@media (min-width: 1024px) {
  .nexo-auth__panel {
    padding: 60px 70px;
    min-height: 100vh;
  }
}

/* Subtle spotlight behind card */
.nexo-auth__panel::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,185,35,0.04) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.nexo-auth__container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  animation: auth-fade-in-up 0.9s cubic-bezier(0.22,1,0.36,1) 0.15s both;
}

/* ══════════════════════════════════════════
   CARD
   ══════════════════════════════════════════ */
.nexo-auth__card {
  position: relative;
}

/* Gold top-border line */
.nexo-auth__card-accent {
  position: absolute;
  top: 0;
  left: 44px;
  right: 44px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--auth-gold-dark),
    var(--auth-gold),
    var(--auth-gold-dark),
    transparent
  );
  border-radius: 0 0 4px 4px;
  z-index: 2;
  filter: blur(0.5px);
}

/* Outer glow halo */
.nexo-auth__card-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(255,185,35,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

.nexo-auth__card-inner {
  background: rgba(13,15,24,0.85);
  backdrop-filter: blur(48px) saturate(1.8);
  -webkit-backdrop-filter: blur(48px) saturate(1.8);
  border: 1px solid var(--auth-border);
  border-top-color: rgba(255,185,35,0.12);
  border-radius: 28px;
  padding: 48px 44px;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 4px 24px rgba(0,0,0,0.3),
    0 40px 120px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.3);
  overflow: hidden;
}

/* Card inner shimmer */
.nexo-auth__card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,185,35,0.025) 50%,
    transparent 60%
  );
  animation: auth-card-shimmer 8s ease-in-out infinite 2s;
  pointer-events: none;
  z-index: 0;
}

@keyframes auth-card-shimmer {
  0%   { left: -60%; }
  40%, 100% { left: 130%; }
}

.nexo-auth__card-inner > * { position: relative; z-index: 1; }

/* ══════════════════════════════════════════
   CARD LOGO
   ══════════════════════════════════════════ */
.nexo-auth__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 36px;
  transition: opacity 0.25s;
}

.nexo-auth__logo:hover { opacity: 0.85; }

.nexo-auth__logo-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 900;
  color: #000;
  background: linear-gradient(135deg, var(--auth-gold-light), var(--auth-gold), var(--auth-gold-dark));
  border-radius: 13px;
  box-shadow:
    0 0 0 1px rgba(255,185,35,0.3),
    0 6px 24px rgba(255,185,35,0.2);
  transition: transform 0.4s cubic-bezier(.19,1,.22,1), box-shadow 0.3s;
  flex-shrink: 0;
}

.nexo-auth__logo:hover .nexo-auth__logo-icon {
  transform: scale(1.06) rotate(-3deg);
  box-shadow: 0 0 0 1px rgba(255,185,35,0.4), 0 8px 32px rgba(255,185,35,0.3);
}

.nexo-auth__logo-text {
  font-size: 19px;
  font-weight: 800;
  color: var(--auth-text);
  letter-spacing: -0.03em;
}

/* ══════════════════════════════════════════
   AUTH HEADER
   ══════════════════════════════════════════ */
.nexo-auth__header {
  margin-bottom: 36px;
}

.nexo-auth__title {
  font-size: 28px;
  font-weight: 800;
  color: var(--auth-text);
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}

.nexo-auth__subtitle {
  font-size: 14px;
  color: var(--auth-text-muted);
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   NOTICES
   ══════════════════════════════════════════ */
.nexo-auth__notice {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: auth-slide-down 0.4s cubic-bezier(0.22,1,0.36,1);
}

.nexo-auth__notice--info {
  background: rgba(255,185,35,0.06);
  border: 1px solid rgba(255,185,35,0.12);
  color: var(--auth-gold-light);
}

.nexo-auth__notice--success {
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.12);
  color: #34d399;
}

.nexo-auth__notice--error {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.12);
  color: #f87171;
}

.nexo-auth__notice-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Form Error Banner ── */
.nexo-auth__form-error {
  padding: 13px 16px;
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 14px;
  color: #f87171;
  font-size: 13px;
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  animation: auth-slide-down 0.35s cubic-bezier(0.22,1,0.36,1);
}

.nexo-auth__form-error.show { display: flex; }
.nexo-auth__form-error svg { width: 17px; height: 17px; flex-shrink: 0; }

@keyframes auth-slide-down {
  from { opacity: 0; transform: translateY(-12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══════════════════════════════════════════
   FORM
   ══════════════════════════════════════════ */
.nexo-auth__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Field ── */
.nexo-auth__field {
  position: relative;
}

.nexo-auth__field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--auth-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 9px;
  transition: color 0.25s;
}

.nexo-auth__field:focus-within .nexo-auth__field-label {
  color: var(--auth-gold);
}

.nexo-auth__field-input-wrap {
  position: relative;
}

.nexo-auth__field-input {
  width: 100%;
  padding: 14px 16px;
  padding-left: 46px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  color: var(--auth-text);
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.nexo-auth__field-input:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

.nexo-auth__field-input:focus {
  background: rgba(255,185,35,0.04);
  border-color: rgba(255,185,35,0.35);
  box-shadow:
    0 0 0 4px rgba(255,185,35,0.06),
    0 0 20px rgba(255,185,35,0.05);
}

.nexo-auth__field-input::placeholder {
  color: rgba(255,255,255,0.2);
}

.nexo-auth__field-input.error {
  border-color: rgba(239,68,68,0.4);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.06);
}

/* Select specific */
.nexo-auth__field-select {
  padding-left: 16px;
  padding-right: 42px;
  cursor: pointer;
  min-height: 50px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.25)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.nexo-auth__field-select option {
  background: #14202e;
  color: var(--auth-text);
}

/* Input icon */
.nexo-auth__field-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: rgba(255,255,255,0.2);
  pointer-events: none;
  transition: color 0.3s;
}

.nexo-auth__field-input:focus ~ .nexo-auth__field-input-icon,
.nexo-auth__field-input-wrap:focus-within .nexo-auth__field-input-icon {
  color: var(--auth-gold);
}

/* Password toggle */
.nexo-auth__field-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  cursor: pointer;
  padding: 6px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
}

.nexo-auth__field-password-toggle:hover {
  color: var(--auth-text-dim);
  background: rgba(255,255,255,0.06);
}

.nexo-auth__field-password-toggle svg { width: 16px; height: 16px; }

/* Field inline error */
.nexo-auth__field-error {
  font-size: 12px;
  color: #f87171;
  margin-top: 6px;
  display: none;
  align-items: center;
  gap: 5px;
}

.nexo-auth__field.error .nexo-auth__field-error { display: flex; }

/* ── Two-column row ── */
.nexo-auth__fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) {
  .nexo-auth__fields-row { grid-template-columns: 1fr; }
}

/* ── Password strength ── */
.nexo-auth__password-strength {
  margin-top: 10px;
  display: flex;
  gap: 5px;
  height: 3px;
}

.nexo-auth__password-strength-bar {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.22,1,0.36,1);
  transform-origin: left;
  transform: scaleX(0);
}

.nexo-auth__password-strength-bar.active           { transform: scaleX(1); }
.nexo-auth__password-strength-bar.active.weak      { background: var(--auth-error); }
.nexo-auth__password-strength-bar.active.medium    { background: var(--auth-gold); }
.nexo-auth__password-strength-bar.active.strong    { background: var(--auth-success); }

.nexo-auth__password-strength-text {
  font-size: 12px;
  color: var(--auth-text-muted);
  margin-top: 8px;
  min-height: 18px;
  transition: color 0.3s;
}

/* ── Hint ── */
.nexo-auth__field-hint {
  font-size: 12px;
  color: var(--auth-text-muted);
  margin-top: 6px;
}

/* ══════════════════════════════════════════
   CHECKBOX / TERMS
   ══════════════════════════════════════════ */
.nexo-auth__checkbox,
.nexo-auth__terms {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  user-select: none;
}

.nexo-auth__checkbox input,
.nexo-auth__terms input { display: none; }

.nexo-auth__checkbox-check,
.nexo-auth__terms-check {
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(.19,1,.22,1);
  flex-shrink: 0;
  background: rgba(255,255,255,0.02);
}

.nexo-auth__checkbox input:checked + .nexo-auth__checkbox-check,
.nexo-auth__terms input:checked + .nexo-auth__terms-check {
  background: var(--auth-gold);
  border-color: var(--auth-gold);
  box-shadow: 0 0 0 3px rgba(255,185,35,0.15), 0 2px 12px rgba(255,185,35,0.3);
}

.nexo-auth__checkbox-check svg,
.nexo-auth__terms-check svg {
  width: 11px;
  height: 11px;
  opacity: 0;
  transform: scale(0) rotate(-30deg);
  transition: all 0.3s cubic-bezier(.19,1,.22,1);
  color: #000;
}

.nexo-auth__checkbox input:checked + .nexo-auth__checkbox-check svg,
.nexo-auth__terms input:checked + .nexo-auth__terms-check svg {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.nexo-auth__checkbox-label,
.nexo-auth__terms-label {
  font-size: 13px;
  color: var(--auth-text-muted);
}

.nexo-auth__terms-label { font-size: 12px; }

.nexo-auth__terms-label a {
  color: var(--auth-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.nexo-auth__terms-label a:hover {
  color: var(--auth-gold-light);
  text-decoration: underline;
}

/* ══════════════════════════════════════════
   SUBMIT BUTTON
   ══════════════════════════════════════════ */
.nexo-auth__submit {
  width: 100%;
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--auth-gold-light) 0%, var(--auth-gold) 50%, var(--auth-gold-dark) 100%);
  border: none;
  border-radius: 14px;
  color: #0a0604;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.22,1,0.36,1);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 -1px 0 rgba(0,0,0,0.2) inset,
    0 4px 20px rgba(255,185,35,0.2),
    0 8px 40px rgba(255,185,35,0.1);
}

.nexo-auth__submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #fff 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.nexo-auth__submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.35) inset,
    0 -1px 0 rgba(0,0,0,0.2) inset,
    0 8px 30px rgba(255,185,35,0.35),
    0 20px 60px rgba(255,185,35,0.15);
}

.nexo-auth__submit:hover::before { opacity: 0.08; }

/* Shimmer sweep */
.nexo-auth__submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.25) 50%,
    transparent 60%
  );
  transition: left 0.6s ease;
}

.nexo-auth__submit:hover::after { left: 150%; }

.nexo-auth__submit:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 2px 12px rgba(255,185,35,0.25);
}

.nexo-auth__submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.nexo-auth__submit > * { position: relative; z-index: 1; }

/* Spinner */
.nexo-auth__submit-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(0,0,0,0.15);
  border-top-color: rgba(0,0,0,0.6);
  border-radius: 50%;
  animation: auth-spin 0.55s linear infinite;
  display: none;
}

.nexo-auth__submit.loading .nexo-auth__submit-text   { visibility: hidden; }
.nexo-auth__submit.loading .nexo-auth__submit-spinner {
  display: block;
  position: absolute;
}

@keyframes auth-spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════
   DIVIDER
   ══════════════════════════════════════════ */
.nexo-auth__divider {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nexo-auth__divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.nexo-auth__divider-text {
  font-size: 11px;
  color: var(--auth-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ══════════════════════════════════════════
   SOCIAL BUTTONS
   ══════════════════════════════════════════ */
.nexo-auth__social {
  display: flex;
  gap: 10px;
}

.nexo-auth__social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  color: var(--auth-text-dim);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.22,1,0.36,1);
  text-decoration: none;
}

.nexo-auth__social-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  color: var(--auth-text);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.nexo-auth__social-btn svg { width: 18px; height: 18px; }

/* ══════════════════════════════════════════
   CARD FOOTER
   ══════════════════════════════════════════ */
.nexo-auth__footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.nexo-auth__footer p {
  color: var(--auth-text-muted);
  font-size: 13px;
  margin-bottom: 2px;
}

.nexo-auth__footer a {
  color: var(--auth-gold);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
}

.nexo-auth__footer a:hover {
  color: var(--auth-gold-light);
  text-decoration: underline;
}

.nexo-auth__footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 12px;
}

.nexo-auth__footer-links a {
  font-size: 12px;
  color: var(--auth-text-muted);
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
}

.nexo-auth__footer-links a:hover { color: var(--auth-text-dim); }

/* ══════════════════════════════════════════
   SUCCESS STATE
   ══════════════════════════════════════════ */
.nexo-auth__success {
  text-align: center;
  padding: 24px 0;
  animation: auth-fade-in-up 0.6s cubic-bezier(0.22,1,0.36,1);
}

.nexo-auth__success-icon {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, rgba(16,185,129,0.12), rgba(16,185,129,0.03));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  border: 1px solid rgba(16,185,129,0.15);
}

.nexo-auth__success-icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(16,185,129,0.08);
  animation: auth-ring-expand 2.5s ease-out infinite;
}

@keyframes auth-ring-expand {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.nexo-auth__success-icon svg { width: 36px; height: 36px; color: #34d399; }

.nexo-auth__success-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--auth-text);
  margin-bottom: 10px;
}

.nexo-auth__success-text {
  font-size: 14px;
  color: var(--auth-text-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════════
   GLOBAL ANIMATIONS
   ══════════════════════════════════════════ */
@keyframes auth-fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes auth-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════════════════════════
   FLOATING BADGE (mobile-only brand hint)
   ══════════════════════════════════════════ */
.nexo-auth__mobile-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

@media (min-width: 1024px) {
  .nexo-auth__mobile-brand { display: none; }
}

.nexo-auth__mobile-brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--auth-gold), var(--auth-gold-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #000;
  box-shadow: 0 4px 20px rgba(255,185,35,0.25);
}

.nexo-auth__mobile-brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--auth-text);
  letter-spacing: -0.03em;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .nexo-auth__panel { padding: 24px 16px; }
  .nexo-auth__card-inner { padding: 36px 28px; }
}

@media (max-width: 480px) {
  .nexo-auth__panel { padding: 16px 12px; }
  .nexo-auth__card-inner { padding: 30px 22px; border-radius: 22px; }
  .nexo-auth__title { font-size: 24px; }
  .nexo-auth__card-accent { left: 30px; right: 30px; }
  .nexo-auth__submit { padding: 15px 20px; font-size: 14px; }
}

/* ══════════════════════════════════════════
   RTL SUPPORT
   ══════════════════════════════════════════ */
[dir="rtl"] .nexo-auth__split { direction: ltr; }

[dir="rtl"] .nexo-auth__brand,
[dir="rtl"] .nexo-auth__panel {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .nexo-auth__field-input:not(.nexo-auth__field-select) {
  padding-right: 46px;
  padding-left: 16px;
}

[dir="rtl"] .nexo-auth__field-input-icon {
  right: 16px;
  left: auto;
}

[dir="rtl"] .nexo-auth__field-password-toggle {
  left: 12px;
  right: auto;
}

[dir="rtl"] .nexo-auth__field-select {
  padding-right: 16px;
  padding-left: 42px;
  background-position: left 14px center;
}

[dir="rtl"] .nexo-auth__brand::after {
  right: auto;
  left: 0;
}

[dir="rtl"] .nexo-auth__brand-back svg {
  transform: scaleX(-1);
}

[dir="rtl"] .nexo-auth__brand-back:hover svg {
  transform: scaleX(-1) translateX(-3px);
}

[dir="rtl"] .nexo-auth__brand-avatars {
  direction: ltr;
}

[dir="rtl"] .nexo-auth__brand-avatar {
  margin-right: 0;
  margin-left: -8px;
}

[dir="rtl"] .nexo-auth__card-accent {
  background: linear-gradient(
    270deg,
    transparent,
    var(--auth-gold-dark),
    var(--auth-gold),
    var(--auth-gold-dark),
    transparent
  );
}

/* RTL font for Arabic */
[dir="rtl"] .nexo-auth {
  font-family: 'Cairo', 'Inter', -apple-system, sans-serif;
}

/* Shared, restrained navy-and-gold treatment for account access. */
.nexo-auth {
  --auth-text-dim: #d3dee7;
  --auth-text-muted: #aabac8;
  background: #14202e;
}
.nexo-auth__canvas-blob,
.nexo-auth__canvas-grid,
.nexo-auth__canvas::before,
.nexo-auth__canvas::after,
.nexo-auth__card-glow,
.nexo-auth__card-accent,
.nexo-auth__card-inner::before,
.nexo-auth__panel::before { display: none; }
.nexo-auth__brand {
  background: #14202e;
  padding: clamp(32px, 4.5vw, 72px);
}
.nexo-auth__brand::after {
  top: 0;
  bottom: 0;
  background: rgba(255,255,255,.12);
}
.nexo-auth__brand-pill { background: transparent; border: 0; padding: 0; letter-spacing: .02em; }
.nexo-auth__brand-pill-dot { box-shadow: none; animation: none; }
.nexo-auth__brand-headline { max-width: 11ch; letter-spacing: -.025em; line-height: 1.12; }
.nexo-auth__brand-desc { max-width: 48ch; margin-bottom: 32px; }
.nexo-auth__brand-features { margin-bottom: 28px; }
.nexo-auth__brand-feature { animation: none; }
.nexo-auth__brand-bottom { border-top: 1px solid rgba(255,255,255,.15); padding-top: 22px; }
.nexo-auth__brand-trust-text { color: #d3dee7; font-size: 14px; }
.nexo-auth__panel { background: #f6f4ed; padding: clamp(28px, 4vw, 64px); }
.nexo-auth__container { max-width: 500px; animation: none; }
.nexo-auth__card-inner {
  background: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(20,32,46,.11);
  padding: clamp(28px, 4vw, 46px);
}
.nexo-auth__card-inner,
.nexo-auth__card-inner .nexo-auth__title,
.nexo-auth__card-inner .nexo-auth__logo-text { color: #14202e; }
.nexo-auth__card-inner .nexo-auth__subtitle,
.nexo-auth__card-inner .nexo-auth__footer p { color: #405268; }
.nexo-auth__card-inner .nexo-auth__field-label,
.nexo-auth__card-inner .nexo-auth__checkbox-label,
.nexo-auth__card-inner .nexo-auth__terms-label { color: #24374b; }
.nexo-auth__card-inner .nexo-auth__field:focus-within .nexo-auth__field-label { color: #17456a; }
.nexo-auth__card-inner .nexo-auth__field-input { background: #f8f9fb; color: #14202e; border-color: #ccd5dc; }
.nexo-auth__card-inner .nexo-auth__field-input::placeholder { color: #66798d; }
.nexo-auth__card-inner .nexo-auth__field-input-icon { color: #52677a; }
.nexo-auth__card-inner .nexo-auth__footer a,
.nexo-auth__card-inner .nexo-auth__footer-links a { color: #17456a; }
.nexo-auth__logo-icon,
.nexo-auth__brand-logo-icon { background: none; box-shadow: none; border-radius: 0; }
.nexo-auth__logo-icon svg,
.nexo-auth__brand-logo-icon svg { width: 38px; height: 38px; }
.nexo-auth__lang {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 18px;
}
.nexo-auth__lang a {
  padding: 7px 12px;
  border-radius: 8px;
  color: #405268;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.nexo-auth__lang a[aria-current="page"] { background: #14202e; color: #fff; }
.nexo-auth__lang a:focus-visible { outline: 3px solid #ffb923; outline-offset: 2px; }
.nexo-auth-page { margin: 0; background: #14202e; }
.nexo-auth-page .nexo-whatsapp { display: none; }
.nexo-auth__forgot { font-size: 13px; color: #17456a; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; white-space: nowrap; }
.nexo-auth__forgot:hover { color: #14202e; }
@media (max-width: 1023px) {
  .nexo-auth__panel { min-height: 100vh; align-items: flex-start; }
  .nexo-auth__container { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .nexo-auth *, .nexo-auth *::before, .nexo-auth *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
