/* ----------- styles.css (light-gray background) ----------- */
:root {
  /* Surface & neutrals */
  --gray-100: #f1f5f9;   /* page background */
  --slate-900: #0f172a;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;

  /* Accents */
  --emerald-500: #10b981;  /* login button default */
  --emerald-600: #059669;  /* login button hover   */

  /* Radius & shadow tokens */
  --radius-sm:  6px;
  --radius-lg: 12px;
  --shadow-sm: 0 2px 5px  rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.15);
}

/* ---------------- Reset + base ---------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--slate-900);

  /* 👉 light-gray flat background */
  background: var(--gray-100);

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* ---------------- Card ---------------- */
.login-form {
  background: #ffffff;
  width: min(420px, 95vw);
  padding: clamp(2rem, 6vw, 3rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

/* ---------------- Typography ---------------- */
.login-form h1 {
  margin-block: 0 2rem;
  text-align: center;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.login-form label {
  font-weight: 600;
  margin-bottom: 0.4rem;
  display: inline-block;
}

/* ---------------- Inputs ---------------- */
.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1.35rem;
}

.login-form input:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--emerald-500) 30%, transparent);
}

/* ---------------- Button ---------------- */
.login-form button {
  all: unset;
  cursor: pointer;
  user-select: none;

  padding: 0.9rem 1.25rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: var(--emerald-500);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.login-form button:hover {
  background: var(--emerald-600);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.login-form button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* ---------------- Reduced-motion respect ---------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
