/* NESTICT enterprise auth — login / register / forgot / 2FA */
body.ea-auth,
body.auth-material {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: #eef2f7;
  color: #0f172a;
}

.ea-shell {
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
  min-height: 100vh;
  width: 100%;
}

.ea-aside {
  background: linear-gradient(165deg, #0b3d2e 0%, #064e3b 45%, #1e3a5f 100%);
  color: #fff;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.ea-aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(30,58,138,.25), transparent 45%);
  pointer-events: none;
}
.ea-aside-inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
}
.ea-badge {
  display: inline-block;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  padding: .35rem .75rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.ea-aside h1 {
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 .75rem;
  color: #fff;
}
.ea-aside h1 em {
  font-style: normal;
  color: #a7f3d0;
}
.ea-aside .lead {
  font-size: .95rem;
  line-height: 1.55;
  opacity: .9;
  margin: 0 0 1.5rem;
  color: rgba(255,255,255,.92);
}

.ea-panel {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(6px);
}
.ea-panel h3 {
  margin: 0 0 .65rem;
  font-size: .95rem;
  font-weight: 700;
  color: #fff;
}
.ea-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ea-panel li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .88rem;
}
.ea-panel li:last-child { border-bottom: 0; }
.ea-panel li span {
  opacity: .85;
  flex-shrink: 0;
}
.ea-panel li strong {
  font-weight: 600;
  text-align: right;
  color: #ecfdf5;
}

.ea-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: #f1f5f9;
}
.ea-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
  padding: 1.75rem 1.5rem 1.5rem;
}
.ea-card-brand {
  text-align: center;
  margin-bottom: 1rem;
}
.ea-card-brand img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
}
.ea-card-brand .mark {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #064e3b;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
}

.ea-card h1 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 .35rem;
  color: #0f172a;
  text-align: center;
}
.ea-card .sub,
.ea-card p.sub {
  text-align: center;
  color: #64748b;
  font-size: .9rem;
  margin: 0 0 1.15rem;
}

.ea-card label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #334155;
  margin: 0 0 .3rem;
}
.ea-card .form-control,
.ea-card input[type="text"],
.ea-card input[type="email"],
.ea-card input[type="password"],
.ea-card input[type="tel"],
.ea-card select {
  width: 100%;
  box-sizing: border-box;
  padding: .65rem .85rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: .95rem;
  margin-bottom: .9rem;
  background: #fff;
  color: #0f172a;
}
.ea-card .form-control:focus,
.ea-card input:focus {
  outline: none;
  border-color: #064e3b;
  box-shadow: 0 0 0 3px rgba(13, 110, 63, 0.15);
}

.ea-card .btn,
.ea-card button[type="submit"],
.ea-card .btn-primary {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  gap: .4rem;
  padding: .7rem 1rem;
  border: none;
  border-radius: 10px;
  background: #064e3b;
  color: #fff !important;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  text-decoration: none;
  margin-top: .25rem;
}
.ea-card .btn:hover,
.ea-card button[type="submit"]:hover {
  background: #0a5a34;
}
.ea-card .btn-ghost {
  width: auto;
  background: transparent;
  color: #64748b !important;
  border: 1px solid #e2e8f0;
  padding: .35rem .55rem;
}

.auth-legal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .5rem;
  align-items: center;
  justify-content: center;
  padding: .45rem .65rem;
  background: #0a3d24;
  color: rgba(255,255,255,.92);
  border-radius: 10px;
  font-size: .75rem;
  margin-bottom: .85rem;
}
.auth-legal-strip a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.auth-legal-strip a:hover { text-decoration: underline; }

.ea-foot {
  text-align: center;
  margin-top: 1.15rem;
  font-size: .88rem;
  color: #64748b;
}
.ea-foot a {
  color: #064e3b;
  font-weight: 600;
  text-decoration: none;
}
.ea-foot a:hover { text-decoration: underline; }

.alert, .auth-error, .flash-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: .65rem .85rem;
  margin-bottom: 1rem;
  font-size: .88rem;
}
.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

@media (max-width: 900px) {
  .ea-shell {
    grid-template-columns: 1fr;
  }
  .ea-aside {
    padding: 1.5rem 1.25rem 1.25rem;
  }
  .ea-aside .ea-panel { display: none; }
  .ea-aside h1 { font-size: 1.35rem; }
  .ea-main { padding: 1.25rem 1rem 2rem; }
}

/* 2.91.52 force solid primary */
.ea-card .btn-primary,
.ea-card button[type="submit"],
body.ea-auth .btn-primary,
body.ea-auth button[type="submit"] {
  background: #064e3b !important;
  color: #fff !important;
  border: 2px solid #064e3b !important;
  font-weight: 800 !important;
}
/* neutralized mid-green solid — use 2.91.67 dark panel */


/* 2.91.66 — strong dark green auth brand */
.auth-left,
.auth-material .auth-left,
.ea-aside,
.enterprise-auth .ea-aside,
.auth-brand-panel {
  background: #043d2e !important;
  background-image: linear-gradient(165deg, #032a20 0%, #043d2e 40%, #064e3b 100%) !important;
  color: #fff !important;
}
.auth-legal-strip { background: #032a20 !important; }
.btn-primary,
.auth-material .btn-primary,
.ea-btn-primary,
button.btn-primary {
  background: #064e3b !important;
  border-color: #064e3b !important;
  color: #fff !important;
}
.btn-primary:hover,
.ea-btn-primary:hover {
  background: #043d2e !important;
  border-color: #043d2e !important;
  color: #fff !important;
}


/* 2.91.67 — strong DARK green left panel (not mid/accent green) */
body.ea-auth .ea-aside,
body.auth-material .ea-aside,
body.ea-auth aside.ea-aside,
.ea-shell > .ea-aside,
.ea-aside,
.auth-left,
.auth-material .auth-left,
.auth-brand-panel {
  background: #022c22 !important;
  background-color: #022c22 !important;
  background-image: linear-gradient(165deg, #011f18 0%, #022c22 35%, #064e3b 100%) !important;
  color: #f8fafc !important;
}
body.ea-auth .ea-aside::after,
.ea-aside::after {
  background:
    radial-gradient(circle at 18% 18%, rgba(255,255,255,.06), transparent 42%),
    radial-gradient(circle at 85% 75%, rgba(6,78,59,.35), transparent 48%) !important;
  opacity: 1 !important;
}
body.ea-auth .ea-aside .ea-panel,
body.ea-auth .ea-aside .ea-panel-soft,
.ea-aside .ea-panel {
  background: rgba(0, 0, 0, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}
.auth-legal-strip {
  background: #011f18 !important;
}
