:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --text: #0f172a;
  --muted: #64748b;
  --success: #16a34a;
  --error: #dc2626;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(160deg, #1e293b, #0f172a 60%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.card {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.card.center { text-align: center; }

h1 {
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.subtitle { color: var(--muted); margin: 0 0 24px; font-size: 0.95rem; }

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 16px 0 6px;
  color: var(--muted);
}

input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  resize: vertical;
}

.email-input {
  display: flex;
  align-items: stretch;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  overflow: hidden;
}

.email-input input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  border-radius: 0;
}

.email-input .email-suffix {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
  border-left: 1px solid #cbd5e1;
}

.btn {
  display: inline-block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-primary:disabled { background: #cbd5e1; color: #64748b; cursor: not-allowed; }

.btn-secondary { background: #e2e8f0; color: var(--text); }
.btn-secondary:hover { background: #cbd5e1; }

.msg { min-height: 1.2em; font-size: 0.85rem; margin-top: 10px; }
.msg.success { color: var(--success); }
.msg.error { color: var(--error); }

.hidden { display: none; }

@media (max-width: 380px) {
  .card { padding: 20px 16px; }
}
