:root {
  --bg-dark: rgba(10, 10, 10, 0.92);
  --bg-panel: rgba(15, 15, 15, 0.84);
  --bg-panel-soft: rgba(20, 20, 20, 0.76);
  --accent: #00d7ea;
  --accent-soft: #86e8f2;
  --accent-hover: #11bfd1;
  --gold: #f0c75e;
  --gold-soft: #ffe29a;
  --text-main: #f3f5f7;
  --text-soft: #c9d2da;
  --text-muted: #98a5b1;
  --border-soft: rgba(0, 215, 234, 0.18);
  --border-strong: rgba(0, 215, 234, 0.28);
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.34);
  --input-bg: rgba(255, 255, 255, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: url("/Assets/chess.jpg") center/cover no-repeat fixed;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}

.container {
  width: 100%;
  max-width: 620px;
}

h1 {
  margin: 0 0 18px;
  text-align: center;
  font-size: 2rem;
  color: var(--text-main);
  text-shadow: 0 0 14px rgba(0, 215, 234, 0.14);
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 10px;
  color: var(--text-main);
  font-size: 1.45rem;
  text-align: center;
}

.subtext {
  color: var(--text-soft);
  margin-bottom: 20px;
  line-height: 1.55;
  text-align: center;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  background: var(--input-bg);
  color: var(--text-main);
  font-size: 0.98rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 215, 234, 0.12);
  transform: translateY(-1px);
}

textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

button {
  width: 100%;
  padding: 13px 14px;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  color: #081214;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
  box-shadow: 0 10px 24px rgba(0, 215, 234, 0.18);
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.hidden {
  display: none;
}

#signupMsg {
  margin-top: 14px;
  min-height: 22px;
  text-align: center;
  font-weight: 600;
  color: var(--gold-soft);
}

@media (max-width: 768px) {
  body {
    padding: 20px 12px;
    background-attachment: scroll;
  }

  .container {
    max-width: 100%;
  }

  h1 {
    font-size: 1.6rem;
    margin-bottom: 14px;
  }

  .card {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .card h2 {
    font-size: 1.2rem;
  }

  input,
  textarea,
  button {
    font-size: 16px;
  }
}