* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background-image: linear-gradient(rgba(10,14,32,0.35), rgba(10,14,32,0.35)), url("../assets/img/login-bg.jpg");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  color: #0f172a;
}
@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}
.container {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  padding: 28px;
}
.card__header { text-align: center; margin-bottom: 12px; }
.brand-logo { display: block; max-width: 220px; width: 60%; height: auto; margin: 0 auto 12px; object-fit: contain; }
.logo {
  width: 52px; height: 52px; border-radius: 12px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  background: #0ea5e9; color: white; font-weight: 700;
  letter-spacing: 0.5px;
}
.title { font-size: 22px; margin: 0 0 4px; }
.subtitle { margin: 0; color: #475569; font-size: 14px; }

.form { margin-top: 12px; }
.field { margin-top: 14px; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
/* options under inputs */
.options-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; color: #334155; }
.options-row .opt { display: inline-flex; align-items: center; gap: 6px; user-select: none; }
.options-row input[type="checkbox"] { width: 16px; height: 16px; }
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.error { color: #b91c1c; font-size: 12px; min-height: 16px; margin: 6px 0 0; }

.btn {
  width: 100%;
  margin-top: 16px;
  padding: 12px 14px;
  background: #0ea5e9;
  border: none;
  color: white;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, transform 0.02s;
}
.btn:hover { background: #0284c7; }
.btn:active { transform: translateY(1px); }

.form__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.form__footer a { color: #0369a1; text-decoration: none; font-size: 13px; }
.form__footer a:hover { text-decoration: underline; }

.footer { margin-top: 16px; text-align: center; color: #64748b; font-size: 12px; }
