/* ==========================================================================
   style.css — Tela de Login / Cadastro (Vision Studio)
   ========================================================================== */
:root {
  --bg: #0a0a0b;
  --card: #1a1a1c;
  --input: #232326;
  --input-border: #2e2e32;
  --text: #ffffff;
  --muted: #a1a1a6;
  --accent: #b23030;
  --accent-hover: #c93a3a;
  --accent-soft: rgba(178, 48, 48, 0.35);
  --danger: #ef5350;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top bar with logo */
.topbar {
  border-bottom: 1px solid #17171a;
  padding: 18px 22px;
  display: flex;
  align-items: center;
}
.topbar-center { justify-content: center; }
.brand-logo { height: 46px; width: auto; display: block; border-radius: 4px; }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 72px;
  gap: 24px;
  width: 100%;
}

.intro {
  width: 100%;
  max-width: 560px;
  border: 1px solid var(--accent-soft);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(178,48,48,0.06), rgba(0,0,0,0));
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.intro h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.5px; }
.intro p { color: var(--muted); margin-top: 12px; font-size: 15.5px; line-height: 1.5; max-width: 380px; margin-left: auto; margin-right: auto; }
.lock { position: absolute; top: 30px; right: 30px; opacity: 0.26; color: var(--accent); }

.card {
  width: 100%;
  max-width: 560px;
  background: var(--card);
  border: 1px solid #26262a;
  border-radius: 18px;
  padding: 32px;
}
.field { margin-bottom: 20px; }
.field-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 9px; }
label { font-size: 15px; font-weight: 700; color: var(--text); }
.link { color: var(--accent-hover); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; background: none; border: none; }
.link:hover { text-decoration: underline; }
input {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--input-border);
  border-radius: 10px;
  padding: 14px 15px;
  color: var(--text);
  font-size: 15.5px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #6b6b70; }
input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.error-message { display: block; color: var(--danger); font-size: 13px; margin-top: 7px; min-height: 16px; }
.btn {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: background .15s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .7; cursor: default; }
.btn .spinner {
  width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none;
}
.btn.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.foot { text-align: center; color: var(--muted); font-size: 15px; margin-top: 20px; }
.hidden { display: none !important; }

/* Reset password extras */
.btn-dark { background: #232326; }
.btn-dark:hover { background: #2c2c30; }
.link-back { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-hover); }
.arrow { font-size: 16px; }
.reset-done-text { text-align: center; color: var(--muted); font-size: 15.5px; line-height: 1.55; margin-bottom: 20px; }

/* Toast (canto inferior direito) */
.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  background: #161618; border: 1px solid #2c2c30; border-radius: 12px;
  padding: 15px 18px; max-width: 340px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  transform: translateY(140%); opacity: 0; transition: transform .35s cubic-bezier(.2,1,.3,1), opacity .35s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-title { color: #fff; font-weight: 800; font-size: 15px; }
.toast-text { color: var(--muted); font-size: 13.5px; margin-top: 3px; line-height: 1.4; }
@media (max-width: 600px) { .toast { left: 16px; right: 16px; max-width: none; } }

@media (max-width: 600px) {
  .intro h1 { font-size: 29px; }
  .intro, .card { padding: 26px 20px; }
  .lock { top: 20px; right: 20px; }
}
