@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: #f8fafc;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(5,150,105,.10) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(16,185,129,.06) 0%, transparent 60%);
}

.brand-name {
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
  color: #059669;
  text-align: center;
}

.brand-dot {
  display: inline-block;
  width: .45em;
  height: .45em;
  background: #10b981;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: .18em;
  margin-bottom: .12em;
  opacity: .85;
  cursor: pointer;
  transition: transform .15s, opacity .15s, box-shadow .15s;
}
.brand-dot:hover {
  opacity: 1;
  transform: scale(1.18);
  box-shadow: 0 0 0 4px rgba(16,185,129,.20);
}
[data-theme="dark"] .brand-dot {
  background: #34d399;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.75rem;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 60px -10px rgba(15,23,42,.10), 0 4px 16px -4px rgba(15,23,42,.06);
}

.login-input {
  width: 100%;
  padding: .9rem 1.1rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: .875rem;
  outline: none;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 500;
  color: #0f172a;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-input::placeholder { color: #94a3b8; }
.login-input:focus {
  border-color: #059669;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(5,150,105,.12);
}

.login-btn {
  width: 100%;
  padding: .95rem 1.5rem;
  background: #059669;
  color: #fff;
  border: none;
  border-radius: .875rem;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5,150,105,.35);
  transition: background .15s, transform .1s, box-shadow .15s;
}
.login-btn:hover  { background: #047857; box-shadow: 0 6px 18px rgba(5,150,105,.40); }
.login-btn:active { transform: scale(.985); }
.login-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.forgot-password-btn {
  align-self: flex-end;
  width: auto;
  padding: .15rem .1rem .45rem;
  background: transparent;
  border: 0;
  color: #047857;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
}
.forgot-password-btn:hover { color: #065f46; text-decoration: underline; }
.forgot-password-btn:disabled { cursor: not-allowed; opacity: .65; text-decoration: none; }

#loginStatus {
  display: none;
  margin-top: 1.1rem;
  padding: .75rem 1rem;
  border-radius: .75rem;
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
}
#loginStatus.is-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}
#loginStatus.is-info {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #065f46;
}

/* Bootstrap section */
.bootstrap-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1.75rem;
  padding: 2rem;
  margin-top: 1rem;
}

/* Dark mode */
[data-theme="dark"] body {
  background: #0f172a;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(16,185,129,.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(5,150,105,.05) 0%, transparent 60%);
  color: #f1f5f9;
}
[data-theme="dark"] .brand-name { color: #34d399; }
[data-theme="dark"] .login-card,
[data-theme="dark"] .bootstrap-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.40), 0 4px 16px -4px rgba(0,0,0,.25);
}
[data-theme="dark"] .login-input {
  background: #0f172a;
  border-color: #334155;
  color: #f1f5f9;
}
[data-theme="dark"] .login-input::placeholder { color: #475569; }
[data-theme="dark"] .login-input:focus {
  border-color: #34d399;
  background: #1e293b;
  box-shadow: 0 0 0 3px rgba(52,211,153,.15);
}
[data-theme="dark"] .login-btn { background: #059669; }
[data-theme="dark"] .login-btn:hover { background: #10b981; }
[data-theme="dark"] .forgot-password-btn { color: #34d399; }
[data-theme="dark"] .forgot-password-btn:hover { color: #6ee7b7; }
