/* =============================================================================
   style.css — Client Upload Portal. Minimal, no framework.
   ============================================================================= */

:root {
  --bg: #0f172a;
  --card: #ffffff;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #1d4ed8;
  --brand-ink: #ffffff;
  --error-bg: #fef2f2;
  --error-ink: #b91c1c;
  --ok-bg: #f0fdf4;
  --ok-ink: #15803d;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem;
  background: linear-gradient(160deg, var(--bg), #1e293b);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.card {
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
}

.brand { text-align: center; margin-bottom: 1.5rem; }
.brand h1 { margin: 0; font-size: 1.35rem; color: var(--brand); }
.tagline { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9rem; }

h2 { margin: 0 0 1rem; font-size: 1.15rem; }

form { display: flex; flex-direction: column; gap: 0.9rem; }

label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.opt { color: var(--muted); font-weight: 400; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="file"],
textarea {
  font: inherit;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input:focus, textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

textarea { resize: vertical; }

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.checkbox input { width: auto; }

.note summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}
.note label { margin-top: 0.6rem; }

button {
  font: inherit;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

button.primary { background: var(--brand); color: var(--brand-ink); }
button.primary:hover { background: #1742b8; }
button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  margin-top: 0.6rem;
}
button.link {
  background: none;
  color: var(--brand);
  padding: 0;
  width: auto;
}
button:disabled { opacity: 0.6; cursor: not-allowed; }

.switch { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); text-align: center; }
.switch a { color: var(--brand); }

.muted { color: var(--muted); font-size: 0.9rem; }
.row-between { display: flex; align-items: center; justify-content: space-between; }

code { background: #f1f5f9; padding: 0.15rem 0.4rem; border-radius: 5px; }

/* Inline banner */
.banner {
  margin-bottom: 1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
.banner--error { background: var(--error-bg); color: var(--error-ink); }
.banner--ok { background: var(--ok-bg); color: var(--ok-ink); }
