/* ===== Reset & Base ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: #0b0b0c;
  background: radial-gradient(1200px 600px at 80% -10%, #2a2a2a 0%, #111 60%, #0b0b0b 100%);
}

/* ===== Layout ===== */
.auth-shell {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

/* ===== Card ===== */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
  padding: 22px 18px;
  display: grid;
  gap: 16px;
}

/* ===== Logo (black SVG sits on white card) ===== */
.center-logo {
  display: flex; /* override original display:none */
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 56px;
  color: #000;
  text-decoration: none;
  letter-spacing: .2px;
}
.center-logo img {
  height: 40px;
  width: auto;
}

.center-logo a {
  font-size: 100px;
}

/* ===== Header (centered) ===== */
.auth-head {
  text-align: center;
}
.auth-head h1 {
  margin: 0 0 4px 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}
.auth-sub {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

/* ===== Form ===== */
.login-form { display: grid; gap: 14px; }
.form-group { display: grid; gap: 6px; }
label { color: #374151; font-size: .95rem; }

input[type="email"], input[type="password"], input[type="text"]{
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus {
  outline: none;
  border-color: #ffec0f;
  box-shadow: 0 0 0 3px rgba(255,236,15,.35);
}

/* Password field with eye that DOES NOT break layout */
.password-wrap {
  position: relative;
  display: block; /* keep input full width */
}
.password-wrap input {
  width: 100%;
  padding-right: 46px; /* space for eye */
}
.toggle-pass {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  height: 36px;
  width: 36px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
}
.toggle-pass:hover { color: #111827; }
.toggle-pass svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.toggle-pass.on { color: #111827; }

/* ===== Submit ===== */
.btn-primary {
  width: 100%;
  padding: 12px 16px;
  background: #ffec0f;
  color: #000;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .06s ease, filter .15s ease, background .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); filter: saturate(1.05); }

/* ===== Errors (clean inline list that doesn’t shift layout) ===== */
.errorlist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.error {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
}

/* ===== Footer ===== */
.auth-foot { text-align: center; color: #6b7280; }
.auth-foot small { font-size: 12.5px; }

/* ===== Mobile polish ===== */
@media (max-width: 380px) {
  .center-logo { font-size: 45px; }
  .center-logo img { height: 32px; }
}


/* Inline error improvements */
.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239,68,68,.15);
}
.errorlist {
  list-style: none;
  margin: 6px 0 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.errorlist .error {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
}

/* Keep password eye from breaking layout */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 46px; }
.toggle-pass {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  height: 36px; width: 36px; border: 0; background: transparent; cursor: pointer;
  color: #6b7280; display: grid; place-items: center;
}
.toggle-pass:hover { color: #111827; }
.toggle-pass svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.toggle-pass.on { color: #111827; }
