/* ═══════════════════════════════════════════════════════════
   auth.css — Estilos das páginas de autenticação
   FaturaHub · Grupo Ceolin
═══════════════════════════════════════════════════════════ */

/* ─── Layout centralizado ─── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
  padding: 1rem;
}

/* ─── Botão de tema (canto superior direito) ─── */
.theme-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--text-muted);
  font-family: var(--font);
  transition: all var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface2);
}

/* ─── Card de login ─── */
.login-wrap {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* ─── Header do card ─── */
.login-header {
  background: var(--verde);
  padding: 2rem;
  text-align: center;
}

[data-theme="dark"] .login-header {
  background: var(--verde-dark);
}

.login-logo {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin: 0 auto 0.85rem;
  letter-spacing: -1px;
}

.login-title {
  color: white;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: -0.3px;
}

.login-sub {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
}

/* ─── Body do card ─── */
.login-body {
  padding: 2rem;
}

.login-body .form-control {
  font-size: 0.95rem;
  padding: 10px 14px;
}

.login-submit {
  width: 100%;
  padding: 10px;
  font-size: 0.95rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ─── Página 403 ─── */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
}

.error-box {
  text-align: center;
  max-width: 420px;
  padding: 2rem;
}

.error-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.error-box h2 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.error-box p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.error-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 22px;
  background: var(--verde);
  color: white;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.error-back:hover {
  background: var(--verde-light);
  color: white;
  transform: translateY(-1px);
}