/* same indigo look as the hub and the remote; works on the big screen and on the phone */

:root {
  --bg: radial-gradient(ellipse at 50% 0%, #2a1d5c 0%, #141238 45%, #07061a 100%);
  --text: #fff;
  --muted: rgba(220, 215, 255, 0.65);
  --accent-gradient: linear-gradient(135deg, #7e22ce 0%, #4338ca 50%, #1d4ed8 100%);
  --title-color: #ece6ff;
  --glow: rgba(109, 40, 217, 0.5);
  --panel-bg: rgba(160, 150, 255, 0.08);
  --panel-border: 1px solid rgba(180, 170, 255, 0.18);
  --font: "DejaVu Sans", "Noto Sans", system-ui, sans-serif;
  --title-font: "Arial Black", "DejaVu Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: #07061a;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg) fixed;
}

.hidden {
  display: none !important;
}

.card {
  width: 100%;
  max-width: 380px;
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--panel-bg);
  border: var(--panel-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.subtitle {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.title {
  margin: 8px 0 24px;
  font-family: var(--title-font);
  font-weight: normal;
  font-size: 2rem;
  color: var(--title-color);
  text-shadow: 0 0 24px var(--glow);
}

form,
#resume {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-size: 0.9rem;
  color: var(--muted);
}

input {
  padding: 12px 14px;
  border-radius: 12px;
  border: var(--panel-border);
  background: rgba(10, 8, 32, 0.6);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

input:focus {
  outline: 2px solid #6d28d9;
}

button {
  font: inherit;
  color: var(--text);
  cursor: pointer;
}

button.primary {
  margin-top: 6px;
  min-height: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--accent-gradient);
  box-shadow: 0 0 20px var(--glow);
  font-size: 1.1rem;
  font-weight: bold;
}

button.primary:disabled {
  opacity: 0.5;
}

button.link {
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: underline;
}

.message {
  min-height: 1.4em;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.message.error {
  color: #fca5a5;
}
