/* =====================================================================
   TennisBot — shared base styles. Mobile-first, framework-free.
   Portals layer their own styles on top of these tokens.
   ===================================================================== */

:root {
  --green-50: #ccf5df;
  --green-500: #00c455;
  --green-700: #009940;
  --ink: #091a0e;
  --ink-soft: #3d5c48;
  --line: rgba(9, 26, 14, 0.10);
  --surface: #ffffff;
  --bg: #f0f7f3;
  --danger: #e82e18;
  --warning: #a86500;
  --ok: #00c455;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(9, 26, 14, 0.06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

h1, h2, h3 { font-weight: 600; line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }
a { color: var(--green-700); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 15px; font-weight: 500; cursor: pointer; min-height: 44px;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--green-500); border-color: var(--green-500); color: #fff; }
.btn-block { width: 100%; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--ink-soft); margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); min-height: 44px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--green-500); outline-offset: -1px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
}

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 20px;
  font-size: 12px; font-weight: 500; background: var(--green-50); color: var(--green-700);
}
.badge-danger { background: #fcebeb; color: var(--danger); }
.badge-warning { background: #faeeda; color: var(--warning); }

.muted { color: var(--ink-soft); }
.error-text { color: var(--danger); font-size: 13px; }

/* Auth screen */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { width: 100%; max-width: 380px; }
.login-logo { display: block; width: 200px; margin: 0 auto 4px; }

/* Responsive container */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 16px; }

@media (min-width: 768px) {
  .container { padding: 24px; }
}
