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

:root {
  --bg: #0d0f13;
  --surface: #171a20;
  --border: #292e37;

  --text: #f2f3f5;
  --text-secondary: #9da4af;

  --primary: #001aff;
  --primary-hover: #ddb52f;

  --error-bg: rgba(220, 70, 70, 0.1);
  --error-border: rgba(220, 70, 70, 0.3);
  --error-text: #f0a6a6;
}

body {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  background: var(--bg);
  color: var(--text);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

/* =========================
   CONTAINER
   ========================= */

main {
  width: 100%;
  max-width: 420px;
}

/* =========================
   TÍTULO
   ========================= */

main > h1 {
  margin-bottom: 8px;

  text-align: center;

  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.5px;

  color: var(--primary);
}

main > h2 {
  margin-bottom: 28px;

  text-align: center;

  color: var(--text);
  font-size: 20px;
  font-weight: 500;
}

/* =========================
   ERRO
   ========================= */

main > div {
  margin-bottom: 18px;
  padding: 12px 14px;

  background: var(--error-bg);

  border: 1px solid var(--error-border);
  border-radius: 8px;

  color: var(--error-text);

  font-size: 14px;
  line-height: 1.4;
}

/* =========================
   FORMULÁRIO
   ========================= */

form {
  padding: 28px;

  background: var(--surface);

  border: 1px solid var(--border);
  border-radius: 12px;

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

form > div {
  margin-bottom: 20px;
}

label {
  display: block;

  margin-bottom: 7px;

  color: var(--text-secondary);

  font-size: 14px;
  font-weight: 500;
}

input {
  width: 100%;

  height: 44px;

  padding: 0 12px;

  background: #101217;
  color: var(--text);

  border: 1px solid var(--border);
  border-radius: 7px;

  outline: none;

  font-family: inherit;
  font-size: 15px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input::placeholder {
  color: #626975;
}

input:hover {
  border-color: #383f4a;
}

input:focus {
  border-color: var(--primary);

  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

/* =========================
   BOTÃO
   ========================= */

button {
  width: 100%;
  height: 44px;

  margin-top: 4px;

  background: var(--primary);
  color: #111;

  border: none;
  border-radius: 7px;

  font-family: inherit;
  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.1s ease;
}

button:hover {
  background: var(--primary-hover);
}

button:active {
  transform: translateY(1px);
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  main > h1 {
    font-size: 26px;
  }

  main > h2 {
    font-size: 18px;
    margin-bottom: 22px;
  }

  form {
    padding: 22px;
  }
}
.link-cadastro {
  display: inline-block;
  margin-top: 18px;
  color: #c9a227;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.link-cadastro:hover {
  color: #e0bd3f;
  text-decoration: underline;
}
