/* auth.css — estilos de autenticação compartilhados por todos os dashboards.
 * .auth-overlay, .auth-submit, .auth-chip e .logo-badge ficam inline (accent-específicos). */

.auth-back-btn {
  position:absolute; top:16px; left:16px;
  font-size:12px; font-weight:600; color:var(--text2);
  text-decoration:none; display:flex; align-items:center; gap:5px;
  background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
  padding:5px 11px; border-radius:8px; transition:all .2s; backdrop-filter:blur(4px);
}
.auth-back-btn:hover { border-color:var(--accent); color:var(--accent); }
[data-theme="light"] .auth-back-btn { background:rgba(0,0,0,.05); border-color:rgba(0,0,0,.12); }

.auth-theme-toggle {
  position:absolute; top:16px; right:16px;
  display:flex; align-items:center; gap:8px;
}

.auth-card {
  width:min(360px, 100%); padding:22px; border-radius:20px;
  background:rgba(10,12,18,.98); border:1px solid rgba(255,255,255,.06);
  box-shadow:0 24px 70px rgba(0,0,0,.42); backdrop-filter:blur(18px);
}
[data-theme="light"] .auth-card {
  background:rgba(255,255,255,.98);
  border:1px solid rgba(17,24,39,.08);
  box-shadow:0 22px 56px rgba(15,23,42,.14);
}

.auth-brand { display:flex; flex-direction:column; align-items:center; gap:0; margin-bottom:18px; }
.auth-brand-row { display:flex; align-items:center; gap:8px; }
.auth-brand-row span { font-family:'Syne',sans-serif; font-size:20px; font-weight:800; color:var(--text); }

.auth-form { display:flex; flex-direction:column; gap:10px; }
.auth-label {
  font-family:'DM Mono',monospace; font-size:10px; color:var(--muted);
  letter-spacing:.08em; text-transform:uppercase; margin-bottom:6px;
}
.auth-input {
  width:100%; border-radius:14px; border:1px solid var(--border2);
  background:var(--surface2); color:var(--text);
  padding:14px 16px; font-family:'DM Sans',sans-serif; font-size:14px;
  outline:none; transition:border-color .2s, box-shadow .2s, background .2s;
}
.auth-input:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-dim); }

.password-row { display:flex; flex-direction:column; gap:6px; }
.password-field { position:relative; }
.password-row .auth-input { padding-right:50px; }
.password-toggle {
  position:absolute; right:8px; top:50%; transform:translateY(-50%);
  width:34px; height:34px; border:none; border-radius:999px;
  background:rgba(255,255,255,.04); color:var(--text2); cursor:pointer;
  display:flex; align-items:center; justify-content:center; padding:0;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);
  transition:transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.password-toggle:hover {
  color:var(--text);
  background:rgba(255,255,255,.08);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}
.password-toggle svg {
  width:17px; height:17px; stroke:currentColor; fill:none;
  stroke-width:2; stroke-linecap:round; stroke-linejoin:round;
  transition:transform .2s ease, opacity .2s ease;
}
.password-toggle.is-active {
  color:var(--accent);
  background:var(--accent-dim);
  box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent),
             0 0 0 3px color-mix(in srgb, var(--accent) 8%, transparent);
}
.password-toggle.is-active svg { transform:scale(1.06); }
.password-toggle.is-animating { animation:eyeClick .26s ease; }
@keyframes eyeClick {
  0%   { transform:translateY(-50%) scale(1); }
  45%  { transform:translateY(-50%) scale(1.14) rotate(-8deg); }
  100% { transform:translateY(-50%) scale(1); }
}

.auth-options {
  display:flex; align-items:center; justify-content:space-between;
  gap:12px; margin-top:2px; font-size:12px;
}
.remember-me { display:inline-flex; align-items:center; gap:8px; color:var(--text2); cursor:pointer; user-select:none; }
.remember-me input { width:14px; height:14px; accent-color:var(--accent); cursor:pointer; }

.auth-submit:hover  { transform:translateY(-1px); }
.auth-submit:active { transform:translateY(0); }
.auth-submit:disabled { opacity:.45; cursor:not-allowed; transform:none; }

.auth-error {
  display:none; margin-top:12px; padding:10px 12px; border-radius:12px;
  background:rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.3);
  color:#fca5a5; font-size:12px; line-height:1.45;
}

.auth-avatar { width:22px; height:22px; border-radius:50%; object-fit:cover; flex-shrink:0; border:1.5px solid var(--border2); }

.google-btn {
  display:flex; align-items:center; justify-content:center; gap:10px;
  width:100%; padding:11px 16px; border-radius:10px; border:1px solid var(--border2);
  background:var(--surface2); color:var(--text); font-size:.93rem; font-weight:500;
  cursor:pointer; transition:background .15s, border-color .15s;
}
.google-btn:hover { background:var(--surface3); border-color:var(--accent); }
.google-btn:disabled { opacity:.6; cursor:not-allowed; }

.auth-or {
  display:flex; align-items:center; gap:8px; color:var(--muted);
  font-size:.8rem; margin:10px 0;
}
.auth-or::before,.auth-or::after { content:''; flex:1; height:1px; background:var(--border); }

.admin-login-toggle { text-align:center; margin-top:4px; }
.admin-login-toggle button {
  background:none; border:none; color:var(--muted); font-size:.8rem;
  cursor:pointer; text-decoration:underline; padding:2px;
}
.admin-login-toggle button:hover { color:var(--text2); }
