/* Eversource Email — clean corporate login (no external fonts) */
:root {
  --es-ink: #1c2430;
  --es-deep: #243b4a;
  --es-mid: #3d5a6c;
  --es-paper: #f4f1ec;
  --es-panel: #fbfaf8;
  --es-line: rgba(28, 36, 48, 0.12);
  --es-muted: rgba(244, 241, 236, 0.72);
}

.es-login {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  overflow: hidden;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background:
    radial-gradient(900px 520px at 50% -5%, rgba(255, 255, 255, 0.14), transparent 60%),
    radial-gradient(700px 480px at 80% 100%, rgba(0, 0, 0, 0.18), transparent 55%),
    linear-gradient(165deg, #1e3340 0%, #2a4554 48%, #1a2c36 100%);
  background-color: #1e3340;
}

.es-login::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.07;
  background-image: repeating-linear-gradient(
    -28deg,
    rgba(255, 255, 255, 0.55) 0 1px,
    transparent 1px 10px
  );
  pointer-events: none;
}

.es-login::after {
  content: "";
  position: absolute;
  width: 70vmax;
  height: 70vmax;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 68%);
  animation: es-glow 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.es-login > div {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
}

.es-login-brand-wrap {
  text-align: center;
  margin-bottom: 1.6rem;
  animation: es-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.es-login h1,
.es-login .es-login-brand {
  margin: 0;
  font-family: Georgia, "Times New Roman", "Songti SC", "Noto Serif SC", serif;
  font-weight: 700;
  font-size: clamp(1.95rem, 4.2vw, 2.45rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #f7f4ef;
}

.es-login-tagline {
  margin: 0.55rem 0 0;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--es-muted);
}

.es-login-brand-wrap::after {
  content: none;
  display: none;
}

.es-login-panel,
.es-login > div > div.rounded-lg {
  position: relative;
  background: var(--es-panel) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  border-radius: 14px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22) !important;
  animation: es-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.06s both;
  overflow: hidden;
}

.es-login-panel::before,
.es-login > div > div.rounded-lg::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #6d8490, #3d5a6c, #6d8490);
  opacity: 0.85;
}

.es-login label,
.es-login .text-sm.font-medium {
  color: var(--es-ink) !important;
  font-weight: 600 !important;
}

.es-login input,
.es-login .h-11 {
  border-color: var(--es-line) !important;
  background: #f7f6f3 !important;
  border-radius: 8px !important;
  color: var(--es-ink) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.es-login input:focus,
.es-login input:focus-visible {
  border-color: var(--es-mid) !important;
  box-shadow: 0 0 0 3px rgba(61, 90, 108, 0.16) !important;
  outline: none !important;
  background: #fff !important;
}

.es-login button[type="submit"],
.es-login form button.h-11.w-full {
  background: var(--es-deep) !important;
  color: #f7f4ef !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  box-shadow: none !important;
  transition: background 0.18s ease, transform 0.18s ease;
}

.es-login form button.h-11.w-full:hover {
  background: #2f4b5c !important;
  transform: translateY(-1px);
  filter: none;
}

.es-login > div > div.rounded-lg .text-muted-foreground {
  color: rgba(28, 36, 48, 0.5) !important;
}

.es-login .text-muted-foreground {
  color: var(--es-muted) !important;
}

.es-login > div > .mt-5 {
  color: rgba(247, 244, 239, 0.65) !important;
}

.es-login > div > .mt-5 button,
.es-login > div > .mt-5 a {
  color: #d7dde1 !important;
  font-weight: 600;
}

@keyframes es-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes es-glow {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

@media (max-width: 480px) {
  .es-login { padding: 1.5rem 1rem; }
  .es-login-panel,
  .es-login > div > div.rounded-lg { border-radius: 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .es-login::after,
  .es-login-brand-wrap,
  .es-login > div > div.rounded-lg {
    animation: none !important;
  }
}
