/* login.css — usa as variáveis de index.css como base */

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg-main);
  display: grid;
  place-items: center;
  transition: background 500ms ease;
  font-family: "Georgia", serif;
}

.wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background: transparent;
}

img.logo {
  width: 360px;
  max-width: 90vw;
  cursor: pointer;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.8));
  transition: transform 500ms ease;
}

img.logo:hover { transform: scale(1.05); }

.note {
  color: var(--text-sec);
  letter-spacing: 1px;
  font-size: 0.9rem;
}

/* ── Modal overlay ─────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  padding: 28px 24px;
  border-radius: 12px;
  min-width: 320px;
  max-width: 92vw;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.modal h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  color: var(--gold);
  letter-spacing: 1px;
}

/* ── Campos ─────────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}

label {
  font-size: 0.8rem;
  color: var(--text-sec);
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

input[type=text],
input[type=password],
input[type=email] {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  background: var(--bg-input);
  color: var(--text-main);
  font-family: "Georgia", serif;
  outline: none;
  transition: border-color 0.15s;
}

input:focus {
  border-color: var(--gold);
}

/* ── Botões ─────────────────────────────────────────── */
.actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

button {
  padding: 9px 18px;
  border-radius: 6px;
  border: none;
  font-family: "Georgia", serif;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-cancel {
  background: transparent;
  color: var(--text-sec);
  border: 1px solid var(--border);
}

.btn-cancel:hover { background: var(--bg-input); }

.btn-submit {
  background: var(--btn);
  color: var(--btn-text);
}

.btn-submit:hover { background: var(--btn-hover); }

/* ── Links dentro do modal ──────────────────────────── */
.modal a {
  color: var(--gold);
  font-size: 0.85rem;
  text-decoration: none;
}

.modal a:hover { text-decoration: underline; }

/* ── Mensagens de erro ──────────────────────────────── */
#msg, #msgReg {
  font-size: 0.8rem;
  color: #c0604a;
}

/* ── Footer ─────────────────────────────────────────── */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  background: transparent;
}

#footer { width: 80px; opacity: 0.7; }

@media (max-width: 420px) { img.logo { width: 280px; } }
