/* Neo design: split-screen hero + modern auth card */

:root {
  --neo-glass: rgba(255,255,255,0.82);
  --neo-stroke: rgba(255,255,255,0.45);
  --neo-shadow: 0 18px 50px rgba(0,0,0,.25);
}

/* Full viewport grid */
.login-neo {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-family-primary, 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif);
  background: radial-gradient(60% 60% at 10% 10%, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 60%),
              radial-gradient(60% 60% at 90% 10%, rgba(255,255,255,.12) 0%, rgba(255,255,255,0) 60%),
              linear-gradient(135deg, var(--primary-red), var(--accent-red) 50%, #3b0a18 100%);
  color: #0f172a;
}

/* Optional photo overlay (keeps your current background image) */
.login-neo.has-photo {
  background-image: url('../img/login.jpg');
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.login-neo.has-photo::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(0,0,0,.2), rgba(0,0,0,.35));
}

.login-viewport {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2rem;
  align-items: center; justify-content: center;
  min-height: 100vh; padding: clamp(1rem, 3vw, 3rem);
}

/* Floating aura shapes for subtle depth */
.login-viewport .aura {
  position: absolute; filter: blur(60px); opacity: .25; z-index: 0;
  pointer-events: none; border-radius: 50%;
}
.aura.a { width: 38vmax; height: 38vmax; left: -10vmax; top: -6vmax; background: #ff6b6b; }
.aura.b { width: 30vmax; height: 30vmax; right: -8vmax; bottom: -8vmax; background: #ffd166; }

/* Hero panel */
.hero {
  z-index: 1; color: #fff; padding: clamp(.5rem, 1.5vw, 1rem);
}
.hero .brandline {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  font-weight: 600; letter-spacing: .3px;
}
.hero h1 {
  margin: 1rem 0 .5rem; font-size: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-family-display, 'Playfair Display', Georgia, serif);
  line-height: 1.05; text-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.hero p.lead { max-width: 48ch; opacity: .9; font-weight: 500; }
.hero .quick-links { margin-top: 1.2rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.hero .quick-links .pill {
  color: #fff; text-decoration: none; font-weight: 600;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  padding: .45rem .85rem; transition: background .2s ease, transform .2s ease;
}
.hero .quick-links .pill:hover { background: rgba(255,255,255,.15); transform: translateY(-1px); }

/* Auth card */
.auth-wrap { z-index: 1; display: grid; place-items: center; }
.auth-card {
  width: min(480px, 92vw);
  background: var(--neo-glass);
  border: 1px solid var(--neo-stroke);
  box-shadow: var(--neo-shadow);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: 1.25rem; padding: clamp(1.2rem, 2.2vw, 2rem);
  position: relative; overflow: hidden;
}
.auth-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.25), rgba(255,255,255,0) 30%, rgba(255,255,255,.15) 60%, rgba(255,255,255,0));
  mix-blend-mode: overlay; opacity: .7;
}
.auth-card .badge-top {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .7rem; border-radius: 999px; font-weight: 700;
  background: linear-gradient(135deg, var(--accent-gold), #ffd166);
  color: #5b3a00; box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.auth-card h3 { margin: .75rem 0 .25rem; font-weight: 800; color: var(--primary-red); }
.auth-card .sub { color: #4b5563; font-weight: 500; margin-bottom: .75rem; }

/* Announcement */
.announce {
  display: flex; gap: .6rem; align-items: flex-start; margin: .75rem 0 1rem;
  background: linear-gradient(180deg, rgba(255,193,7,.18), rgba(255,193,7,.08));
  border: 1px dashed rgba(255,193,7,.6); color: #7c2d12;
  border-radius: .9rem; padding: .7rem .9rem;
}

/* Inputs */
.input-with-icon { position: relative; }
.input-with-icon i.input-icon {
  position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
  color: #64748b; pointer-events: none; font-size: 1rem;
}
.input-with-icon .form-control {
  padding-left: 2.3rem; border-radius: .9rem; border: 2px solid #e2e8f0;
  background: rgba(255,255,255,.95); transition: border-color .2s ease, box-shadow .2s ease;
}
.input-with-icon .form-control:focus { border-color: var(--accent-gold); box-shadow: 0 0 0 .2rem rgba(212,175,55,.18); }

/* Eye icon */
.toggle-icon { right: .9rem; color: #6b7280; }
.toggle-icon:hover { color: var(--primary-red); }

/* Button */
.btn-neo {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; padding: .85rem 1rem; border-radius: .9rem; border: none;
  background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
  color: #fff; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
  box-shadow: 0 10px 25px rgba(139,0,0,.3); transition: transform .15s ease, box-shadow .15s ease;
}
.btn-neo:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(139,0,0,.35); color: #fff; }
.btn-neo:disabled { opacity: .7; }

.links { text-align: center; margin-top: .7rem; font-weight: 600; }
.links a { color: var(--primary-red); text-decoration: none; }
.links a:hover { color: var(--accent-red); text-decoration: underline; }

/* Responsive */
@media (max-width: 992px) {
  .login-viewport { grid-template-columns: 1fr; padding-top: 5rem; }
  .hero { text-align: center; }
  .hero p.lead { margin: 0 auto; }
  .hero .quick-links { justify-content: center; }
}

/* Optional plain mode for a minimal blank background */
.login-neo.plain {
  background: #f7f7f9;
}

/* High-contrast overrides for plain mode */
.login-neo.plain .hero { color: #111827; }
.login-neo.plain .hero h1 { color: #0f172a; text-shadow: 0 2px 8px rgba(0,0,0,.06); }
.login-neo.plain .hero p.lead { color: #374151; opacity: 1; }
.login-neo.plain .hero .brandline {
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.12);
  color: var(--primary-red);
}
.login-neo.plain .hero .quick-links .pill {
  color: var(--primary-red);
  border-color: rgba(139,0,0,.35);
}
.login-neo.plain .hero .quick-links .pill:hover { background: rgba(139,0,0,.08); }
.login-neo.plain .aura { opacity: .12; filter: blur(48px); }
