/* Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #2b0b0b;          /* dark red background */
  --card: #fff8f8;        /* soft off-white card */
  --ink: #111;            /* text color */
  --muted: #555;          /* muted labels */
  --red: #e53935;         /* primary tomato red */
  --red-dark: #c62828;    /* darker hover red */
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0,0,0,0.25);
}

body {
  min-height: 100vh;
  font-family: system-ui, sans-serif;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: var(--ink);
}

.wrap {
  width: 100%;
  max-width: 420px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 4px;
  color: var(--red);
}

label {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 6px;
}

input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
}

input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,57,53,0.25);
}

button {
  margin-top: 12px;
  padding: 12px;
  border: none;
  border-radius: var(--radius);
  background: var(--red);
  color: #fff;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.05s;
}
button:hover { background: var(--red-dark); }
button:active { transform: translateY(1px); }
button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

#result {
  margin-top: 12px;
  padding: 12px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fff0f0, #ffe5e5);
  font-size: 1rem;
  line-height: 1.4;
}
#result strong { color: var(--red-dark); }
