/* Login page — self-contained styles. No dependencies. */

:root {
  --ink: #0d0d0d;
  --ink-2: #1a1f2e;
  --brand: #F37220;
  --paper: #ffffff;
  --rule: #e3e3e3;
  --muted: #6b6b6b;
  --error: #b00020;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

main.login {
  display: flex;
  min-height: 100vh;
}

/* ---- Left (brand) panel ---- */

.brand-panel {
  flex: 1.2;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-2) 100%);
  color: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 44px;
  height: 44px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -1px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  opacity: 0.6;
}

.brand:focus {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 4px;
}

.wordmark {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
  margin: 0;
}

.wordmark .accent { color: var(--brand); }

.tagline {
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.7;
  margin: 12px 0 0 0;
  max-width: 32ch;
}

.accent-rule {
  width: 100%;
  max-width: 32ch;
  height: 2px;
  background: var(--brand);
  margin: 16px 0 0 0;
  border: 0;
}

.brand-footer {
  font-size: 12px;
  opacity: 0.55;
}

.brand-footer a {
  color: inherit;
  text-decoration: underline;
}

/* ---- Right (form) panel ---- */

.form-panel {
  flex: 1;
  background: var(--paper);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-panel h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--ink);
}

.form-panel .subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px 0;
}

form.login-form {
  display: flex;
  flex-direction: column;
  max-width: 360px;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

.field input {
  font-size: 16px; /* >= 16px prevents iOS zoom on focus */
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}

.field input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-color: var(--ink);
}

button.btn-primary {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 16px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-bottom: 3px solid var(--brand);
  border-radius: 4px;
  cursor: pointer;
  min-height: 44px;
}

button.btn-primary:hover { background: #1f1f1f; }

button.btn-primary:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* ---- Alert region (error / msg) ---- */

.alert {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.alert.error {
  background: #fdecef;
  color: var(--error);
  border: 1px solid #f4c4cc;
}

.alert.success {
  background: #e8f5ec;
  color: #1d6e3a;
  border: 1px solid #b9dec5;
}

.alert .icon {
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Mobile ---- */

@media (max-width: 767px) {
  main.login { flex-direction: column; }

  .brand-panel {
    flex: 0 0 auto;
    min-height: 30vh;
    padding: 28px 24px;
  }

  .wordmark { font-size: 36px; }
  .tagline { font-size: 14px; }
  .brand-mark { width: 36px; height: 36px; font-size: 16px; }

  .form-panel {
    flex: 1;
    padding: 28px 24px;
  }

  .form-panel h1 { font-size: 20px; }
}
