/* frontend/assets/styles.css */
:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #333333;
  --muted: #777777;
  --primary: #ff0000;
  --primary-hover: #000000;
  --border: #dddddd;
  --shadow: rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg), #eaeaea);
  display: grid;
  place-items: center;
}

.form-container {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 10px 24px var(--shadow);
}

h2 {
  margin: 0 0 16px 0;
  color: var(--text);
  text-align: center;
  font-weight: 600;
}

.field { margin-bottom: 12px; }
label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}
input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.15);
}

.hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
}

.btn {
  width: 100%;
  padding: 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.05s ease;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }

.msg {
  margin-top: 14px;
  font-size: 0.95rem;
  color: var(--text);
  text-align: center;
}
.msg.error { color: #b00020; }
.msg.success { color: #0c7a43; }