/* Identidade visual conforme Manual de Marketing Café Conceito (rev. 02, 01/01/2023):
   cores principais #000000/#FFFFFF, secundárias #4D4D4D/#4D3636/#492111,
   tipografia Gotham Bold/Medium/Light (arquivos oficiais em public/fonts). */
@font-face {
  font-family: "Gotham";
  src: url("/fonts/Gotham-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("/fonts/Gotham-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("/fonts/Gotham-Bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --preto: #000000;
  --branco: #ffffff;
  --cinza: #4d4d4d;
  --marrom-acinzentado: #4d3636;
  --marrom-escuro: #492111;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--preto);
  font-family: "Gotham", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 300;
  padding: 1rem;
}

.card {
  background: var(--branco);
  border-radius: 4px;
  padding: 2.5rem 2rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.logo {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto 1rem;
}

.subtitle {
  color: var(--cinza);
  margin: 0 0 1.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--marrom-acinzentado);
}

input {
  padding: 0.7rem 0.8rem;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--preto);
}

input:focus-visible {
  outline: 2px solid var(--marrom-escuro);
  outline-offset: 1px;
}

input:invalid {
  border-color: var(--marrom-escuro);
}

.field-error {
  margin: -0.5rem 0 0;
  color: var(--marrom-escuro);
  font-size: 0.75rem;
  font-weight: 500;
}

.field-error[hidden] {
  display: none;
}

button {
  margin-top: 0.6rem;
  padding: 0.85rem;
  border: none;
  border-radius: 4px;
  background: var(--preto);
  color: var(--branco);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}

button:hover {
  background: #232323;
}

button:focus-visible {
  outline: 2px solid var(--marrom-escuro);
  outline-offset: 2px;
}

#first-time-fields[hidden] {
  display: none;
}

#first-time-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.hint {
  margin: 0;
  padding: 0.65rem 0.75rem;
  background: #f4efe9;
  border-left: 3px solid var(--marrom-escuro);
  color: var(--marrom-acinzentado);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}

.success-title {
  font-family: "Gotham", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--preto);
  margin: 0 0 0.75rem;
}

.success-text {
  font-weight: 500;
  color: var(--preto);
  margin: 0 0 0.4rem;
}

.success-until {
  color: var(--cinza);
  font-size: 0.85rem;
  font-weight: 500;
}
