/* Homeowner Portal — light theme, mobile-first, Tabler-style */
:root {
  --ho-bg: #f1f5f9;
  --ho-surface: #ffffff;
  --ho-border: #e2e8f0;
  --ho-text: #1e293b;
  --ho-text-secondary: #475569;
  --ho-text-muted: #94a3b8;
  --ho-maroon: #7f1d1d;
  --ho-maroon-light: #fca5a5;
  --ho-green: #16a34a;
  --ho-green-bg: #dcfce7;
  --ho-blue: #2563eb;
  --ho-blue-bg: #dbeafe;
  --ho-amber: #d97706;
  --ho-amber-bg: #fef3c7;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--ho-bg);
  color: var(--ho-text);
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

/* Login page */
.ho-login-card {
  max-width: 400px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ho-login-brand { text-align: center; margin-bottom: 32px; }
.ho-login-brand img { height: 80px; border-radius: 16px; }
.ho-login-brand h1 { font-size: 22px; font-weight: 700; margin-top: 12px; }
.ho-login-brand p { font-size: 14px; color: var(--ho-text-muted); }

.ho-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--ho-surface);
  border: 1px solid var(--ho-border);
  border-radius: 10px;
  font-size: 18px;
  font-family: inherit;
  color: var(--ho-text);
  text-align: center;
}
.ho-input:focus { outline: none; border-color: var(--ho-maroon); box-shadow: 0 0 0 3px rgba(127,29,29,0.08); }
.ho-error { color: #dc2626; font-size: 13px; min-height: 20px; margin-top: 8px; text-align: center; }

.ho-btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 12px;
}
.ho-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ho-btn-primary { background: var(--ho-maroon); color: white; }
.ho-btn-primary:hover:not(:disabled) { background: #5b1414; }
.ho-btn-ghost { background: transparent; color: var(--ho-text-muted); font-size: 14px; }

.ho-sent-to { font-size: 14px; color: var(--ho-text-secondary); margin-bottom: 12px; text-align: center; }
.ho-sent-to span { color: var(--ho-text); font-weight: 500; }

.ho-code-group { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.ho-code-digit {
  width: 44px; height: 52px;
  text-align: center;
  font-size: 22px; font-weight: 600;
  border: 1px solid var(--ho-border);
  border-radius: 8px;
  background: var(--ho-surface);
  color: var(--ho-text);
  font-family: inherit;
}
.ho-code-digit:focus { outline: none; border-color: var(--ho-maroon); box-shadow: 0 0 0 3px rgba(127,29,29,0.08); }

.ho-footer { text-align: center; margin-top: 32px; font-size: 13px; color: var(--ho-text-muted); }
.ho-footer a { color: var(--ho-text-muted); text-decoration: none; }
.ho-footer a:hover { color: var(--ho-maroon); }

/* Dashboard */
.ho-shell { max-width: 520px; margin: 0 auto; padding: 0 16px 32px; }
.ho-header {
  text-align: center;
  padding: 24px 0 16px;
}
.ho-header img { height: 40px; border-radius: 8px; margin-bottom: 8px; }
.ho-header h1 { font-size: 16px; font-weight: 600; color: var(--ho-text); }
.ho-header .ho-address { font-size: 13px; color: var(--ho-text-muted); }

.ho-card {
  background: var(--ho-surface);
  border: 1px solid var(--ho-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ho-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.ho-card .ho-subtitle { font-size: 13px; color: var(--ho-text-muted); margin-bottom: 16px; }

/* Timeline */
.ho-timeline { list-style: none; padding: 0; margin: 0; }
.ho-timeline li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  position: relative;
}
.ho-timeline li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 34px;
  bottom: -10px;
  width: 2px;
  background: var(--ho-border);
}
.ho-timeline li.complete::after { background: var(--ho-maroon); }

.ho-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-top: 1px;
}
.ho-dot.complete { background: var(--ho-maroon); color: white; }
.ho-dot.in-progress {
  background: white;
  border: 3px solid var(--ho-maroon);
  box-shadow: 0 0 0 4px rgba(127,29,29,0.12);
}
.ho-dot.future { background: var(--ho-border); }

.ho-milestone-label { font-size: 14px; font-weight: 500; color: var(--ho-text); padding-top: 2px; }
.ho-milestone-status { font-size: 12px; font-weight: 600; margin-left: auto; padding-top: 4px; white-space: nowrap; }
.ho-milestone-status.complete { color: var(--ho-green); }
.ho-milestone-status.in-progress { color: var(--ho-maroon); }

.ho-super-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ho-super-card .ho-super-name { font-weight: 600; font-size: 15px; }
.ho-super-card .ho-super-role { font-size: 12px; color: var(--ho-text-muted); }
.ho-super-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ho-maroon);
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.ho-updated { text-align: center; font-size: 12px; color: var(--ho-text-muted); margin-top: 8px; }

.ho-text-us {
  text-align: center;
  padding: 16px;
  font-size: 14px;
  color: var(--ho-text-secondary);
}
.ho-text-us a { color: var(--ho-maroon); font-weight: 600; text-decoration: none; }

/* Warranty */
.ho-warranty-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.ho-warranty-badge.active { background: var(--ho-green-bg); color: #14532d; }
.ho-warranty-badge.expired { background: #fee2e2; color: #7f1d1d; }

.ho-request-card {
  border: 1px solid var(--ho-border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}
.ho-request-card .ho-req-id { font-size: 12px; color: var(--ho-text-muted); font-weight: 600; }
.ho-request-card .ho-req-desc { font-size: 14px; margin: 4px 0; }
.ho-req-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.ho-req-status.submitted { background: var(--ho-blue-bg); color: #1e40af; }
.ho-req-status.forwarded, .ho-req-status.in_progress { background: var(--ho-amber-bg); color: #92400e; }
.ho-req-status.resolved { background: var(--ho-green-bg); color: #14532d; }
.ho-req-status.denied { background: #fee2e2; color: #7f1d1d; }

.ho-form-field { margin-bottom: 14px; }
.ho-form-field label { display: block; font-size: 13px; color: var(--ho-text-secondary); margin-bottom: 4px; font-weight: 500; }
.ho-form-field select, .ho-form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ho-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ho-text);
  background: var(--ho-surface);
}
.ho-form-field textarea { min-height: 100px; resize: vertical; }

.ho-logout { text-align: center; margin-top: 24px; }
.ho-logout button {
  background: none; border: none; color: var(--ho-text-muted);
  font-size: 13px; cursor: pointer; font-family: inherit;
}

/* Loading */
.ho-loading { text-align: center; padding: 60px 20px; color: var(--ho-text-muted); }
