*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: radial-gradient(circle at 20% 25%, #1e3c33 0%, #07100d 45%, #050505 100%);
  color: #d8e1db;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(120deg, rgba(46, 204, 113, 0.18), transparent 40%, rgba(155, 89, 182, 0.13));
  pointer-events: none;
  z-index: 0;
}

/* ── Animated glow orbs ── */
.glow-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
  animation: drift 10s ease-in-out infinite alternate;
}

.glow-orb--left {
  background: #2ecc71;
  top: -110px;
  left: -130px;
}

.glow-orb--right {
  background: #8e44ad;
  bottom: -90px;
  right: -145px;
  animation-delay: 2.2s;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(18px, -18px) scale(1.1); }
}

/* ── Noise texture overlay ── */
.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 2;
}

/* ── Scanlines ── */
.scanline {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.05) 2px,
    rgba(0, 0, 0, 0.05) 3px
  );
  pointer-events: none;
  z-index: 3;
}

/* ── Login card ── */
.container {
  position: relative;
  z-index: 10;
  text-align: center;
  width: min(460px, 92vw);
  padding: 3.2rem 3.5rem;
  background: rgba(12, 16, 12, 0.68);
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 1rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.container::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(46, 204, 113, 0.24) 0%, transparent 60%);
  mix-blend-mode: screen;
}

.container::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  border-image: linear-gradient(120deg, rgba(46, 204, 113, 0.9), rgba(155, 89, 182, 0.9));
  border-image-slice: 1;
  pointer-events: none;
}

.ornament {
  position: relative;
  font-size: 0.95rem;
  color: rgba(46, 204, 113, 0.35);
  margin-bottom: 1.4rem;
  letter-spacing: 0.28em;
  z-index: 5;
}

.label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.45em;
  color: rgba(46, 204, 113, 0.5);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  z-index: 5;
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
  z-index: 5;
}

.divider--bottom {
  margin-top: 2rem;
}

.divider span:not(.diamond) {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(46, 204, 113, 0.35), transparent);
}

.diamond {
  font-size: 0.4rem;
  color: rgba(46, 204, 113, 0.45);
}

.login-heading {
  position: relative;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 6vw, 2.7rem);
  font-weight: 600;
  color: #f5f8f5;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin-bottom: 0.45rem;
  z-index: 5;
}

.login-heading em {
  font-style: italic;
  color: #2ecc71;
  margin-left: 0.15ch;
  text-shadow: 0 0 26px rgba(46, 204, 113, 0.46);
}

.login-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.27em;
  color: rgba(190, 215, 195, 0.56);
  margin-bottom: 2.1rem;
  z-index: 5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  z-index: 5;
}

.field {
  text-align: left;
  margin-bottom: 0.7rem;
}

.field label {
  font-size: 0.63rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(166, 230, 175, 0.75);
  margin-bottom: 0.45rem;
  display: block;
}

.field input {
  all: unset;
  width: 100%;
  padding: 0.78rem 0.75rem;
  border-radius: 0.55rem;
  background: rgba(19, 24, 20, 0.72);
  border: 1px solid rgba(83, 190, 139, 0.21);
  color: #edf4ed;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: 0.25s ease;
}

.field input::placeholder {
  color: rgba(160, 175, 160, 0.35);
}

.field input:hover {
  border-color: rgba(46, 204, 113, 0.42);
  box-shadow: 0 0 14px rgba(46, 204, 113, 0.22);
}

.field input:focus {
  border-color: #2ecc71;
  box-shadow: 0 0 16px rgba(46, 204, 113, 0.43);
  outline: none;
  color: #f8fcf8;
}

.btn-login {
  position: relative;
  width: 100%;
  padding: 0.88rem 0;
  margin-top: 0.2rem;
  border: none;
  border-radius: 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0b1f18;
  background: linear-gradient(130deg, rgba(46, 204, 113, 0.95), rgba(71, 196, 145, 0.85));
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(46, 204, 113, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 5;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(46, 204, 113, 0.35);
}

.btn-login:active {
  transform: translateY(1px);
}

.login-forgot {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  color: #abcfed;
  text-decoration: none;
  transition: color 0.25s ease;
  z-index: 5;
}

.login-forgot:hover {
  color: #67b2f0;
}

@media (max-width: 460px) {
  .container {
    padding: 2.3rem 1.8rem;
  }

  .login-heading {
    font-size: 2rem;
  }

  .login-sub {
    margin-bottom: 1.7rem;
  }
}


/* Autofill — prevent white flash */
.field input:-webkit-autofill,
.field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px #080d08 inset;
  -webkit-text-fill-color: #bec5be;
  caret-color: #2ecc71;
  transition: background-color 9999s;
}

/* ── Sign In button ── */
.btn-login {
  all: unset;
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin-top: 0.6rem;
  padding: 1rem 0;
  text-align: center;
  border: 1px solid rgba(46, 204, 113, 0.28);
  color: rgba(46, 204, 113, 0.7);
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.btn-login:hover {
  background: rgba(46, 204, 113, 0.05);
  border-color: rgba(46, 204, 113, 0.5);
  color: #2ecc71;
  box-shadow: 0 0 32px rgba(46, 204, 113, 0.08), inset 0 0 24px rgba(46, 204, 113, 0.03);
}

.btn-login:active {
  background: rgba(46, 204, 113, 0.09);
}

/* ── Forgot password ── */
.login-forgot {
  all: unset;
  display: block;
  text-align: center;
  margin-top: 1.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(120, 150, 120, 0.35);
  cursor: pointer;
  transition: color 0.2s;
}

.login-forgot:hover {
  color: rgba(46, 204, 113, 0.55);
}
