/* Login — unified dark Ecavo theme */
.login-page {
  min-height: 100vh;
  font-family: var(--dash-font, "Plus Jakarta Sans", system-ui, sans-serif);
  color: var(--dash-text);
  background: #050810;
}

.login-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(ellipse 90% 70% at 30% 15%, rgba(37, 99, 235, 0.2), transparent 55%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(37, 99, 235, 0.1), transparent 50%),
    linear-gradient(135deg, #070d18 0%, #050810 45%, #060a14 100%);
}

.login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 40%, rgba(37, 99, 235, 0.06), transparent 40%);
  pointer-events: none;
}

/* ─── Hero (left) ─── */
.login-hero {
  flex: 1.15;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  color: #e2e8f0;
  background: transparent;
  z-index: 1;
}

.hero-top {
  position: relative;
  z-index: 1;
}

.hero-logo-wrap {
  padding: 10px 14px;
}

.hero-eyebrow {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ecavo-blue-bright, #3b82f6);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.hero-accent {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: #93c5fd;
}

.hero-text {
  margin: 0 0 28px;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--ecavo-muted, #94a3b8);
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-points li {
  position: relative;
  padding-left: 34px;
  font-size: 0.96rem;
  color: #cbd5e1;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ecavo-blue, #2563eb);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.hero-footer {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  color: var(--ecavo-muted, #94a3b8);
}

/* ─── Sign-in panel (same background — no grey split) ─── */
.login-panel {
  flex: 0 0 clamp(380px, 40%, 520px);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px 32px;
  background: transparent;
  border-left: 1px solid rgba(148, 163, 184, 0.08);
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.04) 100%);
  pointer-events: none;
}

.login-box {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: rgba(10, 14, 26, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  padding: 34px 30px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  backdrop-filter: blur(16px);
}

.login-box-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 26px;
}

.login-logo-wrap {
  margin-bottom: 16px;
}

.login-title {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #f8fafc;
}

.login-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ecavo-muted, #94a3b8);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.login-form .form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-ico {
  position: absolute;
  left: 13px;
  display: flex;
  align-items: center;
  color: var(--ecavo-muted, #94a3b8);
  pointer-events: none;
}

.login-form .form-group input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 0.98rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(5, 8, 16, 0.7);
  color: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#password {
  padding-right: 64px;
}

.login-form .form-group input::placeholder {
  color: #64748b;
}

.login-form .form-group input:focus {
  outline: none;
  border-color: var(--ecavo-blue, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
}

.pass-toggle {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--ecavo-muted, #94a3b8);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}

.pass-toggle:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.06);
}

.login-error {
  margin: 0;
  font-size: 0.85rem;
  color: #f87171;
  min-height: 0;
  display: none;
}

.login-error.visible,
.login-error:not(:empty) {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.login-btn {
  margin-top: 4px;
  padding: 13px 20px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.4);
}

.login-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-hint {
  margin: 18px 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ecavo-muted, #94a3b8);
  text-align: center;
}

.login-legal {
  position: relative;
  margin: 0;
  font-size: 0.74rem;
  color: #64748b;
}

/* Nandi × Ecavo logo */
.brand-logo-wrap,
.ecavo-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  width: fit-content;
  max-width: 100%;
}

.hero-logo-wrap .brand-logo {
  max-width: 280px;
}

.brand-logo,
.ecavo-logo {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.brand-logo--sm {
  max-width: 200px;
}

@media (max-width: 880px) {
  .login-hero { display: none; }
  .login-panel {
    flex: 1;
    border-left: none;
    padding: 32px 20px;
  }
}

@media (max-width: 420px) {
  .login-panel { padding: 24px 16px; }
  .login-box { padding: 28px 20px; }
}
