*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #09090B;
  --surface: #0A0A0C;
  --border: #1E1E22;
  --red: #DC2626;
  --red-hover: #B91C1C;
  --text: #FAFAFA;
  --text-muted: #A1A1AA;
  --radius-input: 12px;
  --radius-button: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(220, 38, 38, 0.06) 0%, transparent 60%),
    var(--bg);
}

/* ---- Layout ---- */

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

/* ---- Nav ---- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 16px;
  z-index: 10;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

nav a:hover,
nav a.active {
  color: var(--text);
}

/* ---- Hero ---- */

.hero {
  text-align: center;
  margin-bottom: 32px;
}

.logo {
  width: 96px;
  height: auto;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Card ---- */

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

/* ---- Form ---- */

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  outline: none;
  transition: border-color 0.15s;
}

input::placeholder,
textarea::placeholder {
  color: #52525B;
}

input:focus,
textarea:focus {
  border-color: var(--red);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.field + .field {
  margin-top: 16px;
}

button[type="submit"] {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  background: var(--red);
  border: none;
  border-radius: var(--radius-button);
  cursor: pointer;
  transition: background 0.15s;
}

button[type="submit"]:hover {
  background: var(--red-hover);
}

button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Messages ---- */

.message {
  text-align: center;
  padding: 24px;
  display: none;
}

.message.visible {
  display: block;
}

.message h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.message p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}

.message a {
  color: var(--red);
  text-decoration: none;
  font-weight: 500;
}

.message a:hover {
  text-decoration: underline;
}

.error-text {
  color: var(--red);
  font-size: 14px;
  margin-top: 8px;
  display: none;
}

.error-text.visible {
  display: block;
}

/* ---- Footer ---- */

footer {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: #3F3F46;
}
