:root {
  --green-dark: #075e54;
  --green-teal: #128c7e;
  --green: #25d366;
  --bg: #f4faf7;
  --text: #0e1f1a;
  --text-muted: #5b6b66;
  --border: #e3ede9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 211, 102, 0.16), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(18, 140, 126, 0.14), transparent 40%),
    var(--bg);
  padding: 1.5rem;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.2rem 2rem;
  box-shadow: 0 24px 50px -24px rgba(7, 94, 84, 0.3);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1.6rem;
}
.login-brand-mark {
  width: 2.1rem; height: 2.1rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-teal));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.login-brand-mark svg { width: 1.15rem; height: 1.15rem; }

h1 { font-size: 1.35rem; margin: 0 0 0.35rem; letter-spacing: -0.01em; }
.login-sub { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 1.6rem; }

form { display: flex; flex-direction: column; gap: 1rem; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
input {
  font: inherit;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
input:focus { outline: 2px solid var(--green-teal); outline-offset: 1px; }

button {
  margin-top: 0.3rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: none;
  background: var(--green);
  color: #063a2e;
  font-weight: 700;
  font-size: 0.96rem;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
button:hover { background: #21bd5b; transform: translateY(-1px); }
button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.login-error {
  color: #b3261e;
  background: #fdecea;
  border: 1px solid #f5c6c2;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
}
.hidden { display: none !important; }
