/* Identidade visual Vaapty — Ponto Digital */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

:root {
  --vaapty-purple: #4B2C7F;
  --vaapty-purple-deep: #51186D;
  --vaapty-magenta: #EF3E5B;
  --vaapty-orange: #F7941D;
  --vaapty-gradient: linear-gradient(135deg, #EF3E5B 0%, #F7941D 100%);
  --vaapty-bg: #F7F5FA;
  --vaapty-text: #2A1F3D;
  --vaapty-font: "Poppins", "Segoe UI", sans-serif;
  --vaapty-3d-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 -2px 0 rgba(0, 0, 0, 0.12) inset,
    0 4px 0 rgba(0, 0, 0, 0.12),
    0 10px 22px rgba(75, 44, 127, 0.22);
}

body {
  font-family: var(--vaapty-font);
  color: var(--vaapty-text);
  background-color: #f3eef8;
  background-image: url("/static/img/vaapty/app-bg.jpg?v=1");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

/* Páginas autenticadas: fundo aparece atrás do conteúdo */
body:not(:has(.login-page)):not(:has(.alterar-senha-page)) main.container {
  position: relative;
  z-index: 1;
}

body:not(:has(.login-page)):not(:has(.alterar-senha-page)) footer {
  background: rgba(75, 44, 127, 0.45) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none !important;
}

h1, h2, h3, h4,
.navbar h1,
.dashboard h2,
.card h3,
.registro-ponto h2,
.banco-horas h2,
.espelho-ponto h2 {
  font-family: var(--vaapty-font);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.navbar {
  background: linear-gradient(
    180deg,
    rgba(90, 32, 128, 0.72) 0%,
    rgba(81, 24, 109, 0.68) 45%,
    rgba(75, 44, 127, 0.65) 100%
  ) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 8px 24px rgba(42, 23, 69, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.navbar h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 4px rgba(20, 8, 40, 0.35);
}

.navbar .nav-menu a {
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(20, 8, 40, 0.25);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.navbar .nav-menu a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Botões gerais — 3D vidro (semitransparente) */
.btn,
.btn-primary,
button.btn-primary,
a.btn.btn-primary {
  font-family: var(--vaapty-font) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  border-radius: 12px !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(90, 20, 30, 0.45);
  background: linear-gradient(
    180deg,
    rgba(255, 107, 122, 0.55) 0%,
    rgba(239, 62, 91, 0.5) 40%,
    rgba(247, 148, 29, 0.55) 100%
  ) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-bottom-color: rgba(140, 40, 20, 0.28) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 -2px 0 rgba(140, 40, 20, 0.12) inset,
    0 4px 0 rgba(196, 58, 40, 0.35),
    0 8px 18px rgba(239, 62, 91, 0.22) !important;
  transform: translateY(0);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease, background 0.12s ease !important;
}

/* Login / alterar senha: botões sólidos (fundo próprio) */
.login-page .login-box .btn-primary,
.alterar-senha-page .alterar-senha-box .btn-primary {
  background: linear-gradient(180deg, #ff6b7a 0%, #ef3e5b 38%, #f7941d 100%) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.btn:hover,
.btn-primary:hover,
a.btn.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px) !important;
  background: linear-gradient(
    180deg,
    rgba(255, 107, 122, 0.68) 0%,
    rgba(239, 62, 91, 0.62) 40%,
    rgba(247, 148, 29, 0.68) 100%
  ) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 -2px 0 rgba(140, 40, 20, 0.14) inset,
    0 6px 0 rgba(196, 58, 40, 0.4),
    0 12px 24px rgba(239, 62, 91, 0.28) !important;
}

.btn:active,
.btn-primary:active,
a.btn.btn-primary:active {
  filter: brightness(0.98);
  transform: translateY(3px) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 1px 0 rgba(196, 58, 40, 0.4),
    0 4px 10px rgba(239, 62, 91, 0.22) !important;
}

/* Cards em vidro — fundo aparece através */
.card,
.registros-hoje,
.espelho-ponto .card,
.tabela-container,
.filtros-consulta,
.form-card {
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  background: rgba(255, 255, 255, 0.42) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 8px 24px rgba(75, 44, 127, 0.1),
    0 18px 36px rgba(42, 23, 69, 0.08) !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.55) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 12px 28px rgba(75, 44, 127, 0.14),
    0 24px 44px rgba(42, 23, 69, 0.12) !important;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card p {
  font-weight: 500;
  color: #5a4d6e;
}

.dashboard h2,
.registro-ponto h2,
.banco-horas h2,
.espelho-ponto h2 {
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  background: var(--vaapty-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(239, 62, 91, 0.18))
    drop-shadow(0 3px 8px rgba(247, 148, 29, 0.2));
  margin-bottom: 1.25rem;
}

/* Botões de marcação — 3D vidro (fundo visível) */
.btn-marcacao {
  font-family: var(--vaapty-font) !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.4) inset,
    0 -2px 0 rgba(0, 0, 0, 0.12) inset,
    0 6px 0 rgba(75, 44, 127, 0.16),
    0 14px 28px rgba(75, 44, 127, 0.2) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}

.btn-marcacao .icone {
  font-size: 3.25rem !important;
  line-height: 1;
  opacity: 0.92;
  filter: drop-shadow(0 3px 0 rgba(75, 44, 127, 0.15))
    drop-shadow(0 8px 14px rgba(75, 44, 127, 0.2));
  transform: translateZ(0);
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.btn-marcacao .texto {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn-marcacao:hover {
  transform: translateY(-5px) !important;
}

.btn-marcacao:hover .icone {
  opacity: 1;
  transform: scale(1.08) translateY(-2px);
  filter: drop-shadow(0 4px 0 rgba(75, 44, 127, 0.18))
    drop-shadow(0 10px 16px rgba(75, 44, 127, 0.25));
}

.btn-marcacao:active {
  transform: translateY(2px) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4) inset,
    0 2px 0 rgba(75, 44, 127, 0.12),
    0 6px 14px rgba(75, 44, 127, 0.14) !important;
}

.btn-marcacao:disabled,
.btn-marcacao:disabled:hover {
  transform: none !important;
  opacity: 0.55;
  filter: grayscale(0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 2px 6px rgba(75, 44, 127, 0.08) !important;
}

.btn-entrada,
.btn-entrada:hover {
  background: linear-gradient(
    180deg,
    rgba(109, 214, 113, 0.72) 0%,
    rgba(76, 175, 80, 0.68) 50%,
    rgba(46, 125, 50, 0.62) 100%
  ) !important;
}

.btn-entrada:hover {
  background: linear-gradient(
    180deg,
    rgba(109, 214, 113, 0.84) 0%,
    rgba(76, 175, 80, 0.78) 50%,
    rgba(46, 125, 50, 0.72) 100%
  ) !important;
}

.btn-saida-intervalo,
.btn-saida-intervalo:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 183, 77, 0.76) 0%,
    rgba(255, 152, 0, 0.7) 50%,
    rgba(239, 108, 0, 0.64) 100%
  ) !important;
}

.btn-saida-intervalo:hover {
  background: linear-gradient(
    180deg,
    rgba(255, 183, 77, 0.88) 0%,
    rgba(255, 152, 0, 0.82) 50%,
    rgba(239, 108, 0, 0.74) 100%
  ) !important;
}

.btn-retorno-intervalo,
.btn-retorno-intervalo:hover {
  background: linear-gradient(
    180deg,
    rgba(100, 181, 246, 0.76) 0%,
    rgba(33, 150, 243, 0.7) 50%,
    rgba(21, 101, 192, 0.64) 100%
  ) !important;
}

.btn-retorno-intervalo:hover {
  background: linear-gradient(
    180deg,
    rgba(100, 181, 246, 0.88) 0%,
    rgba(33, 150, 243, 0.82) 50%,
    rgba(21, 101, 192, 0.74) 100%
  ) !important;
}

.btn-saida-final,
.btn-saida-final:hover {
  background: linear-gradient(
    180deg,
    rgba(239, 83, 80, 0.74) 0%,
    rgba(244, 67, 54, 0.68) 50%,
    rgba(198, 40, 40, 0.62) 100%
  ) !important;
}

.btn-saida-final:hover {
  background: linear-gradient(
    180deg,
    rgba(239, 83, 80, 0.86) 0%,
    rgba(244, 67, 54, 0.8) 50%,
    rgba(198, 40, 40, 0.72) 100%
  ) !important;
}

/* Ícones / sino / botões auxiliares — vidro */
.btn-sino,
.btn-visualizar,
.btn-comprovante,
.btn-notif-ok,
.btn-sm {
  font-family: var(--vaapty-font);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 3px 0 rgba(75, 44, 127, 0.1),
    0 6px 14px rgba(75, 44, 127, 0.12);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-sino:hover,
.btn-visualizar:hover,
.btn-comprovante:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.5) !important;
}

.icone-sino,
.notif-icone,
.btn-marcacao .icone {
  background: transparent !important;
}

.icone-sino,
.notif-icone {
  filter: drop-shadow(0 2px 3px rgba(75, 44, 127, 0.25));
}

/* Tabelas / painéis opacos do style.css ficam translúcidos */
table,
.tabela-folhas-rh,
.lista-notificacoes,
.dropdown-notificacoes {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Login + alterar senha: arte split (roxo esquerda / branco direita) */
.login-page,
.alterar-senha-page,
body:has(.login-page),
body:has(.alterar-senha-page) {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #4b2c7f !important;
  background-image: url("/static/img/vaapty/login-bg.jpg?v=fhd1") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: cover !important;
}

body:has(.login-page) main,
body:has(.alterar-senha-page) main {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}

/* Modal na faixa branca (~40% direita), centralizado */
.login-page .login-container,
.alterar-senha-page .alterar-senha-container {
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.95fr) !important;
  align-items: center;
  justify-items: stretch;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem clamp(1rem, 3vw, 2rem);
  box-sizing: border-box;
}

.login-page .login-container > .login-box,
.alterar-senha-page .alterar-senha-container > .alterar-senha-box {
  grid-column: 2 !important;
  justify-self: center;
  align-self: center;
  width: 100%;
  max-width: 340px;
}

.login-page .login-box,
.alterar-senha-page .alterar-senha-box {
  background: linear-gradient(180deg, #ffffff 0%, #faf8fc 100%);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-top-color: #fff;
  border-bottom-color: rgba(75, 44, 127, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 -1px 0 rgba(75, 44, 127, 0.06) inset,
    0 10px 20px rgba(75, 44, 127, 0.1),
    0 22px 48px rgba(42, 23, 69, 0.22),
    0 2px 4px rgba(0, 0, 0, 0.06);
  padding: 2rem 1.5rem 1.65rem;
  transform: translateZ(0);
}

@media (max-width: 900px) {
  .login-page .login-container,
  .alterar-senha-page .alterar-senha-container {
    grid-template-columns: 1fr !important;
    justify-items: center;
    padding: 1.5rem 1rem;
  }

  .login-page .login-container > .login-box,
  .alterar-senha-page .alterar-senha-container > .alterar-senha-box {
    grid-column: 1 !important;
    max-width: min(340px, 100%);
  }
}

.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.login-brand img {
  max-width: 200px;
  width: 70%;
  height: auto;
}

.login-box h2,
.alterar-senha-box h2 {
  background: var(--vaapty-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-align: center;
}

/* Login + alterar senha: tipografia e botões em estilo 3D */
.login-page .login-box h2,
.alterar-senha-page .alterar-senha-box h2 {
  font-size: clamp(1.55rem, 3.8vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 2px 0 rgba(239, 62, 91, 0.22))
    drop-shadow(0 4px 10px rgba(247, 148, 29, 0.28));
}

.login-page .login-box .form-group label,
.alterar-senha-page .alterar-senha-box .form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2a1f3d;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.login-page .login-box .form-group input,
.alterar-senha-page .alterar-senha-box .form-group input {
  border: 1px solid rgba(75, 44, 127, 0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, #f7f5fa 0%, #ffffff 55%);
  box-shadow:
    0 2px 4px rgba(75, 44, 127, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.9);
  font-weight: 500;
  color: #2a1f3d;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.login-page .login-box .form-group input:focus,
.alterar-senha-page .alterar-senha-box .form-group input:focus {
  outline: none;
  border-color: #ef3e5b;
  box-shadow:
    0 2px 4px rgba(75, 44, 127, 0.06) inset,
    0 0 0 3px rgba(239, 62, 91, 0.18),
    0 4px 12px rgba(247, 148, 29, 0.12);
}

.login-page .login-box .btn-primary,
.alterar-senha-page .alterar-senha-box .btn-primary {
  border-radius: 12px !important;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: none;
  padding: 0.9rem 1.5rem;
  color: #fff !important;
  text-shadow: 0 1px 2px rgba(90, 20, 30, 0.35);
  background: linear-gradient(180deg, #ff6b7a 0%, #ef3e5b 38%, #f7941d 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-bottom-color: rgba(140, 40, 20, 0.35) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.45) inset,
    0 -2px 0 rgba(140, 40, 20, 0.22) inset,
    0 4px 0 #c43a28,
    0 8px 18px rgba(239, 62, 91, 0.4),
    0 14px 28px rgba(247, 148, 29, 0.22) !important;
  transform: translateY(0);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.login-page .login-box .btn-primary:hover,
.alterar-senha-page .alterar-senha-box .btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    0 -2px 0 rgba(140, 40, 20, 0.22) inset,
    0 6px 0 #c43a28,
    0 12px 24px rgba(239, 62, 91, 0.45),
    0 18px 32px rgba(247, 148, 29, 0.25) !important;
}

.login-page .login-box .btn-primary:active,
.alterar-senha-page .alterar-senha-box .btn-primary:active {
  filter: brightness(0.98);
  transform: translateY(3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 1px 0 #c43a28,
    0 4px 10px rgba(239, 62, 91, 0.3) !important;
}

.alterar-senha-page .alterar-senha-box .info-text {
  background: rgba(239, 62, 91, 0.12);
  color: #8a1f35;
  border: 1px solid rgba(239, 62, 91, 0.25);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 8px rgba(239, 62, 91, 0.1);
}

.card h3,
.dashboard h2 {
  color: var(--vaapty-purple);
}

.navbar .brand-logo {
  height: 28px;
  width: auto;
  vertical-align: middle;
  margin-right: 0.5rem;
}
