/* ============================================================
   EBPÓS Webmail — Tema enterprise preto + dourado
   ============================================================ */

/* ===== ANTI-FOUC: revela quando CSS carrega ===== */
/* Aplica APENAS na tela de login. Admin e webmail logado não são afetados. */
html.ebpos-ready { visibility: visible !important; }
html:not(.ebpos-ready):has(.LoginView, #V-Login) { visibility: hidden !important; }

:root {
  --gold: #d4af37;
  --gold-bright: #f4d97a;
  --gold-deep: #b8941e;
  --gold-soft: rgba(212, 175, 55, 0.4);
  --gold-glow: rgba(244, 217, 122, 0.6);
  --bg-1: #07060a;
  --bg-2: #14110a;
  --bg-3: #1c150a;
  --card-bg: rgba(15, 12, 8, 0.72);
  --text: #f5f0e0;
  --text-soft: rgba(245, 240, 224, 0.65);
}

/* ===== BACKGROUND ANIMADO — APENAS NA TELA DE LOGIN ===== */
html:has(.LoginView, #V-Login),
html:has(.LoginView, #V-Login) body,
html:has(.LoginView, #V-Login) #rl-app {
  background: #000 !important;
  color: var(--text) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  overflow: hidden;
}

html:has(.LoginView, #V-Login) body::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: -2;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(212, 175, 55, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(184, 148, 30, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(244, 217, 122, 0.08) 0%, transparent 60%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  background-size: 200% 200%;
  animation: gradientShift 18s ease-in-out infinite;
}

html:has(.LoginView, #V-Login) body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 25% 25%, rgba(212, 175, 55, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, rgba(244, 217, 122, 0.06) 1px, transparent 1px);
  background-size: 60px 60px, 90px 90px;
  opacity: 0.4;
  pointer-events: none;
  animation: drift 30s linear infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 0%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 50% 100%; }
  75% { background-position: 0% 50%; }
}

@keyframes drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 60px 60px, -90px 90px; }
}

/* ===== LOGIN VIEW WRAPPER ===== */
#V-Login,
.LoginView {
  background: transparent !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
  padding: 20px !important;
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== HEADER / LOGO (substitui texto EBPÓS) ===== */
.LoginView > .descWrapper {
  width: 100% !important;
  max-width: 480px !important;
  text-align: center !important;
  margin: 0 auto 32px auto !important;
  font-size: 0 !important;
  color: transparent !important;
  position: relative;
  padding-top: 0;
}

.LoginView > .descWrapper::before {
  content: '';
  display: block;
  width: 280px;
  height: 90px;
  margin: 0 auto;
  background-image: url('/logo.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.3));
  animation: logoFadeIn 1.2s ease-out;
}

.LoginView > .descWrapper::after {
  content: 'Sistema de E-mail Institucional';
  display: block;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 14px;
  opacity: 0.9;
  animation: subtitleSlide 1s ease-out 0.4s both;
}

@keyframes logoFadeIn {
  from { opacity: 0; transform: scale(0.85); filter: blur(8px); }
  to { opacity: 1; transform: scale(1); filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.3)); }
}

@keyframes subtitleSlide {
  from { opacity: 0; transform: translateY(-10px); letter-spacing: 8px; }
  to { opacity: 0.9; transform: translateY(0); letter-spacing: 4px; }
}

/* ===== FORM CARD ===== */
.LoginView form {
  background: var(--card-bg) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(212, 175, 55, 0.15) !important;
  border-radius: 16px !important;
  padding: 40px !important;
  width: 100% !important;
  max-width: 440px !important;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 100px rgba(212, 175, 55, 0.08),
    inset 0 1px 0 rgba(244, 217, 122, 0.12) !important;
  position: relative;
  overflow: hidden;
  animation: cardSlide 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.LoginView form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}

.LoginView form::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.08), transparent 60%);
  pointer-events: none;
  border-radius: 16px;
}

@keyframes cardSlide {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== INPUT GROUPS ===== */
.LoginView .controls,
.LoginView .input-prepend {
  background: rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
  border-radius: 10px !important;
  margin-bottom: 18px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 !important;
  gap: 6px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.LoginView .controls:hover,
.LoginView .input-prepend:hover {
  border-color: rgba(212, 175, 55, 0.4) !important;
  background: rgba(0, 0, 0, 0.55) !important;
}

.LoginView .controls:focus-within,
.LoginView .input-prepend:focus-within {
  border-color: var(--gold) !important;
  background: rgba(0, 0, 0, 0.6) !important;
  box-shadow:
    0 0 0 3px rgba(212, 175, 55, 0.15),
    0 0 30px rgba(212, 175, 55, 0.2) !important;
  transform: translateY(-1px);
}

/* Esconde APENAS os ícones emoji ✉ 🔑 dos inputs (não checkbox/idioma) */
.LoginView form > .controls > span.fontastic,
.LoginView .controls:has(input[name="Email"]) > span.fontastic,
.LoginView .controls:has(input[name="Password"]) > span.fontastic,
.LoginView .add-on {
  display: none !important;
}

.LoginView input[type="email"],
.LoginView input[type="text"],
.LoginView input[type="password"],
.LoginView input.input-block-level {
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: 18px center !important;
  background-size: 18px 18px !important;
  border: none !important;
  color: var(--text) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  padding: 14px 18px 14px 50px !important;
  height: 48px !important;
  width: 100% !important;
  outline: none !important;
  box-shadow: none !important;
  font-family: inherit !important;
  flex: 1 !important;
  min-width: 0 !important;
}

/* Ícone email (envelope dourado) */
.LoginView input[name="Email"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") !important;
}

/* Ícone senha (cadeado dourado) */
.LoginView input[name="Password"],
.LoginView input[type="password"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") !important;
}

.LoginView input::placeholder {
  color: var(--text-soft) !important;
  font-weight: 300 !important;
}

.LoginView input:-webkit-autofill,
.LoginView input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.6) inset !important;
  caret-color: var(--gold);
}

/* ===== ROW: Switch Lembrar-me (sem borda, sem idioma) ===== */
.LoginView form > .controls:last-of-type {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin: 8px 2px 20px 2px !important;
  padding: 0 !important;
  gap: 12px !important;
  transform: none !important;
}

.LoginView form > .controls:last-of-type:hover,
.LoginView form > .controls:last-of-type:focus-within {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Esconde botão de idioma */
.LoginView .language-buttons,
.LoginView .language-button {
  display: none !important;
}

/* SWITCH iOS-style — esconde ícone original e usa pseudo */
.LoginView .e-checkbox {
  color: var(--text-soft) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 0.3px;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  user-select: none;
  outline: none !important;
  transition: color 0.25s ease;
  padding: 4px 0;
  position: relative;
}

.LoginView .e-checkbox:hover {
  color: var(--text) !important;
}

/* Esconde o ☑/☐ original */
.LoginView .e-checkbox > i.fontastic {
  font-size: 0 !important;
  color: transparent !important;
  width: 38px !important;
  height: 22px !important;
  display: inline-block !important;
  position: relative !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
  border-radius: 999px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  flex-shrink: 0 !important;
  vertical-align: middle;
}

/* Thumb (bola) */
.LoginView .e-checkbox > i.fontastic::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #f0f0f0, #c8c8c8);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado ON (quando .is-checked é adicionado por JS) */
.LoginView .e-checkbox.is-checked > i.fontastic {
  background: linear-gradient(135deg, var(--gold), var(--gold-deep)) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.LoginView .e-checkbox.is-checked > i.fontastic::after {
  left: 18px;
  background: linear-gradient(135deg, #fff, #f0e0a0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.LoginView .e-checkbox.is-checked {
  color: var(--text) !important;
}


/* ===== BOTÃO ENTRAR ===== */
.LoginView button[type="submit"],
.LoginView .btn-large,
.LoginView button.btn-large {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%) !important;
  color: #000 !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 24px !important;
  width: 100% !important;
  margin-top: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 6px 20px rgba(212, 175, 55, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  z-index: 1;
}

.LoginView button[type="submit"]::before,
.LoginView .btn-large::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.LoginView button[type="submit"]:hover,
.LoginView .btn-large:hover {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%) !important;
  transform: translateY(-2px);
  box-shadow:
    0 10px 30px rgba(212, 175, 55, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.LoginView button[type="submit"]:hover::before,
.LoginView .btn-large:hover::before {
  transform: translateX(100%);
}

.LoginView button[type="submit"]:active,
.LoginView .btn-large:active {
  transform: translateY(0);
}

.LoginView button[type="submit"][disabled],
.LoginView .submitting button[type="submit"] {
  opacity: 0.6 !important;
  cursor: wait !important;
}

/* ===== LANGUAGE SELECTOR ===== */
.LoginView .e-input-language,
.LoginView a.icon-language,
.LoginView [data-bind*="language"] {
  color: var(--gold) !important;
  opacity: 0.6 !important;
  transition: opacity 0.2s ease;
}

.LoginView .e-input-language:hover,
.LoginView a.icon-language:hover {
  opacity: 1 !important;
}

/* ===== ALERTAS / ERROS ===== */
.LoginView .alert {
  background: rgba(220, 50, 50, 0.15) !important;
  border: 1px solid rgba(220, 50, 50, 0.4) !important;
  color: #ff8a8a !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  margin-bottom: 16px !important;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.LoginView .errorAnimated {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* ===== FOOTER (rodapé sutil) ===== */
.LoginView::after {
  content: '© 2026 Faculdade EBPÓS · Todos os direitos reservados';
  position: fixed;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: rgba(212, 175, 55, 0.4);
  letter-spacing: 1.5px;
  font-weight: 300;
  pointer-events: none;
}

/* ===== LOADING ESPECIAL DO LOGIN ===== */
.LoginView .submitting {
  position: relative;
}

.LoginView .submitting::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
  opacity: 0.3;
  animation: scan 1.5s linear infinite;
  pointer-events: none;
  border-radius: 16px;
}

@keyframes scan {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ===== ONBOARDING (form custom) ===== */
/* Form original do user é escondido via JS quando onboarding ativa.
   No admin não mexemos — admin tem seu próprio form de login. */

#ebpos-onb {
  background: var(--card-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 16px;
  padding: 36px 32px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 100px rgba(212, 175, 55, 0.08),
    inset 0 1px 0 rgba(244, 217, 122, 0.12);
  animation: cardSlide 0.9s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

#ebpos-onb::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.7;
}

#ebpos-onb .ebpos-step {
  animation: stepFade 0.4s ease-out;
}

@keyframes stepFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

#ebpos-onb .ebpos-greet,
#ebpos-onb .ebpos-welcome {
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

#ebpos-onb .ebpos-greet strong,
#ebpos-onb .ebpos-welcome strong {
  color: var(--gold-bright);
  font-weight: 600;
  text-transform: capitalize;
}

#ebpos-onb .ebpos-welcome {
  font-size: 20px;
  margin-bottom: 6px;
}

#ebpos-onb .ebpos-info {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 20px;
  line-height: 1.5;
}

#ebpos-onb .ebpos-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 14px 0 8px;
  opacity: 0.85;
}

#ebpos-onb .ebpos-step-email .ebpos-label:first-child { margin-top: 0; }

#ebpos-onb .ebpos-input-wrap {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  background-repeat: no-repeat;
  background-position: 18px center;
  background-size: 18px 18px;
}

#ebpos-onb .ebpos-input-wrap:hover {
  border-color: rgba(212, 175, 55, 0.4);
  background-color: rgba(0, 0, 0, 0.55);
}

#ebpos-onb .ebpos-input-wrap:focus-within {
  border-color: var(--gold);
  background-color: rgba(0, 0, 0, 0.6);
  box-shadow:
    0 0 0 3px rgba(212, 175, 55, 0.15),
    0 0 30px rgba(212, 175, 55, 0.2);
  transform: translateY(-1px);
}

#ebpos-onb .ebpos-input-email {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
}

#ebpos-onb .ebpos-input-pwd {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}

#ebpos-onb input {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
  padding: 14px 18px 14px 50px;
  height: 48px;
  width: 100%;
  outline: none;
  font-family: inherit;
}

#ebpos-onb input::placeholder { color: var(--text-soft); font-weight: 300; }

#ebpos-onb input:-webkit-autofill,
#ebpos-onb input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.6) inset;
  caret-color: var(--gold);
}

#ebpos-onb .ebpos-btn {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 0 24px;
  height: 52px;
  line-height: 52px;
  width: 100%;
  margin-top: 22px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 20px rgba(212, 175, 55, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

#ebpos-onb .ebpos-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

#ebpos-onb .ebpos-btn:hover {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow:
    0 10px 30px rgba(212, 175, 55, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

#ebpos-onb .ebpos-btn:hover::before { transform: translateX(100%); }
#ebpos-onb .ebpos-btn:active { transform: translateY(0); }

#ebpos-onb .ebpos-link {
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 13px;
  margin-top: 14px;
  cursor: pointer;
  width: 100%;
  text-align: center;
  font-family: inherit;
  transition: color 0.2s ease;
}
#ebpos-onb .ebpos-link:hover { color: var(--gold-bright); }

#ebpos-onb .ebpos-msg {
  font-size: 13px;
  margin: 10px 0 0;
  min-height: 0;
  line-height: 1.4;
}
#ebpos-onb .ebpos-msg-error { color: #ff9d9d; }
#ebpos-onb .ebpos-msg-info  { color: var(--text-soft); }
#ebpos-onb .ebpos-msg-success { color: #9dffb3; }

/* HTML hidden attr precisa de display:none forçado */
#ebpos-onb [hidden] { display: none !important; }

/* Loader overlay dentro do card */
#ebpos-onb .ebpos-loader {
  position: absolute;
  inset: 0;
  background: rgba(15, 12, 8, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 5;
  animation: stepFade 0.2s ease-out;
}

#ebpos-onb .ebpos-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

#ebpos-onb .ebpos-loader-text {
  color: var(--gold-bright);
  font-size: 13px;
  letter-spacing: 1px;
}

/* ===== Item "Encaminhamentos" injetado no menu admin SnappyMail ===== */
.ebpos-admin-extra-link {
  display: block;
  padding: 10px 18px;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #d4af37 !important;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.2s ease, color 0.2s ease;
  font-size: 14px;
  letter-spacing: 0.3px;
}
.ebpos-admin-extra-link:hover {
  background: rgba(212, 175, 55, 0.08);
  color: #f4d97a !important;
}

/* ===== Botão Dashboard Matrículas — fundo dourado escuro discreto ===== */
#ebpos-dash-link {
  margin-bottom: 4px;
}

#ebpos-dash-link > a {
  background: linear-gradient(135deg, #3d2f10 0%, #2e2308 100%) !important;
  transition: background 0.25s ease;
}

#ebpos-dash-link > a:hover {
  background: linear-gradient(135deg, #4d3c14 0%, #3a2c0d 100%) !important;
}

/* Loading state */
#ebpos-dash-link.ebpos-dash-loading { pointer-events: none; }
#ebpos-dash-link.ebpos-dash-loading > a {
  opacity: 0.75;
  background: linear-gradient(90deg, #2e2308 0%, #5a4416 50%, #2e2308 100%) !important;
  background-size: 200% 100%;
  animation: ebposDashShimmer 1.2s linear infinite;
}
@keyframes ebposDashShimmer {
  0%   { background-position:   0% 0%; }
  100% { background-position: 200% 0%; }
}

/* Toast */
.ebpos-dash-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 30px);
  background: rgba(20, 15, 8, 0.96);
  color: #f5f0e0;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 99999;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', -apple-system, sans-serif;
  max-width: 380px;
  text-align: center;
}
.ebpos-dash-toast.show { opacity: 1; transform: translate(-50%, 0); }
.ebpos-dash-toast-error { border-color: rgba(220, 80, 80, 0.55); color: #ffd7d7; }
.ebpos-dash-toast-info { border-color: rgba(212, 175, 55, 0.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 540px) {
  .LoginView form, #ebpos-onb {
    padding: 28px 22px !important;
    border-radius: 12px !important;
  }
  .LoginView > .descWrapper::before {
    width: 220px;
    height: 70px;
  }
  .LoginView > .descWrapper::after {
    font-size: 10px;
    letter-spacing: 3px;
  }
}
