#batimento-ponto {
  width: 100%;
  max-width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at top right, #ff6b35 55%, #ecebe8 25%, #9c918b 100%);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  margin: 0;
  padding: 0;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#batimento-ponto::-webkit-scrollbar {
  display: none;
}

.avatar-container {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 185px;
  height: 10px;
  width: 110%;
}

.avatar-container img {
  max-height: 300px;
  max-width: 500px;
}

.biometria-btn {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.biometria-btn img {
  height: 48px;
  width: 48px;
  display: block;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.facial-btn {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.facial-btn img {
  height: 48px;
  width: 48px;
  display: block;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

html,
body {
  max-width: 100%;
  height: 100vh;
  overflow: hidden;
}

body {
  font-family: "Helvetica Neue", sans-serif;
  font-size: 14px;
  font-weight: 500;
  height: 100vh;
  margin: 0;
  padding: 0;
  width: 100%;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

html::-webkit-scrollbar {
  display: none;
}

#batimento-ponto .wrapper {
  height: 100vh;
  width: 100%;
  max-width: 100vw;
  padding: 100px;
  margin: 0;
  overflow: hidden;
}

#batimento-ponto .card {
  width: 30%;
  margin: 0 auto;
}

.card {
  background: white;
  transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  position: relative;
  padding: 32px;
  border-radius: 4px;
  background: white;
  color: rgba(0, 0, 0, 0.87);
  box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2),
    0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
  width: 90%;
  max-width: 700px;
  min-width: 280px;
  margin: 0 auto 50px auto;
  overflow-x: hidden;
}

.card_action {
  text-align: center;
}

.card_action button {
  font-size: 22px;
  padding: 18px 40px;
  min-width: 120px;
  min-height: 56px;
}

.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.welcome-title {
  text-align: center;
  margin-top: 4px;
  font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  color: #2c3e50;
}

input {
  caret-color: #fd397a;
  margin-top: -0.0625em;
  font: inherit;
  background: 0 0;
  color: currentColor;
  outline: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  vertical-align: bottom;
  text-align: inherit;
  writing-mode: horizontal-tb !important;
  -webkit-writing-mode: horizontal-tb !important;
  text-rendering: auto;
  color: initial;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  text-indent: 0px;
  text-shadow: none;
  display: inline-block;
  text-align: start;
  appearance: textfield;
  -webkit-appearance: textfield;
  background-color: white;
  -webkit-rtl-ordering: logical;
  cursor: text;
  margin: 0em;
  font: 400 13.3333px Arial;
  padding: 1px 0px;
  border: none;
  border-bottom: solid 1px #5d78ff;
  margin-bottom: 15px;
}

button {
  box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2),
    0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
  background-color: #f44336;
  color: white;
  box-sizing: border-box;
  position: relative;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
  outline: 0;
  border: none;
  -webkit-tap-highlight-color: transparent;
  display: inline-block;
  white-space: nowrap;
  text-decoration: none;
  vertical-align: baseline;
  text-align: center;
  margin: 0;
  min-width: 64px;
  line-height: 36px;
  padding: 0 16px;
  border-radius: 4px;
  overflow: visible;
  transform: translate3d(0, 0, 0);
  transition: background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);
  appearance: button;
  -webkit-appearance: button;
}

.modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
}

.modal[style*="block"],
.modal[style*="flex"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal[style*="none"] {
  display: none !important;
}

.modal-content {
  background-color: #fefefe !important;
  margin: 0 !important;
  padding: 40px !important;
  border: none !important;
  border-radius: 12px !important;
  width: 400px !important;
  max-width: 90vw !important;
  text-align: center !important;
  box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2),
    0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12) !important;
  position: relative !important;
  transform: none !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.container {
  text-align: center;
}

.container button {
  margin-top: 15px;
}

* {
  box-sizing: border-box;
}

.loading-container {
  position: relative;
  height: 100px;
  width: 100px;
  margin: 100px auto;
  border-radius: 50%;
}

.loading-container-child {
  height: 100px;
  width: 100px;
  border-radius: 50%;
  position: absolute;
  top: 0;
  left: 0;
  transition: 0.6s all;
}

.circle {
  background-color: #077ff2;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  height: 100px;
  position: absolute;
  width: 100px;
  -webkit-transform: scale(0);
  transform: scale(0);
  -webkit-animation: opacityScale 1700ms ease-out infinite;
  animation: opacityScale 1700ms ease-out infinite;
}

.secon {
  animation-delay: 850ms;
}

@-webkit-keyframes opacityScale {
  0% {
    opacity: 1;
    -webkit-transform: scale(0.1);
  }

  100% {
    opacity: 0;
    -webkit-transform: scale(1);
  }
}

@keyframes opacityScale {
  0% {
    opacity: 1;
    transform: scale(0.1);
  }

  100% {
    opacity: 0;
    transform: scale(1);
  }
}

.spinner {
  font-size: 0;
  border: 5px solid #bbbbbb;
  -webkit-animation: rotating 2s 0.25s linear infinite;
  animation: rotating 2s 0.25s linear infinite;
}

.onclic {
  border-left-color: #1ECD97;
  -webkit-animation: rotating 2s 0.25s linear infinite;
  animation: rotating 2s 0.25s linear infinite;
}

@-webkit-keyframes rotating {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes rotating {
  from {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.invisible {
  opacity: 0;
  transition: 0.6s all;
}


.processing {
  width: 100px;
  height: 100px;
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative;
}

.fingerprint {
  left: -8px;
  opacity: 0;
  position: absolute;
  stroke: #777;
  top: -9px;
  transition: opacity 1ms;
}

.fingerprint-active {
  stroke: #fff;
}

.fingerprint-out {
  opacity: 1;
}

.odd {
  stroke-dasharray: 0px 50px;
  stroke-dashoffset: 1px;
  transition: stroke-dasharray 1ms;
}

.even {
  stroke-dasharray: 50px 50px;
  stroke-dashoffset: -41px;
  transition: stroke-dashoffset 1ms;
}

.active .fingerprint {
  opacity: 1;
  transition: opacity 300ms 200ms;
}

.active .fingerprint-base .odd {
  stroke-dasharray: 50px 50px;
  transition: stroke-dasharray 1800ms 5ms;
}

.active .fingerprint-base .even {
  stroke-dashoffset: 0px;
  transition: stroke-dashoffset 500ms;
}

.active .fingerprint-active .odd {
  stroke-dasharray: 50px 50px;
  transition: stroke-dasharray 7000ms 1500ms;
}

.active .fingerprint-active .even {
  stroke-dashoffset: 0px;
  transition: stroke-dashoffset 5000ms 30ms;
}

.active .fingerprint-out {
  opacity: 0;
  transition: opacity 300ms 4100ms;
}


.circ {
  opacity: 0;
  stroke-dasharray: 130;
  stroke-dashoffset: 130;
  -webkit-transition: all 1s;
  -moz-transition: all 1s;
  -ms-transition: all 1s;
  -o-transition: all 1s;
  transition: all 1s;
}

.tick,
.cross {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  -webkit-transition: stroke-dashoffset 1s 0.5s ease-out;
  -moz-transition: stroke-dashoffset 1s 0.5s ease-out;
  -ms-transition: stroke-dashoffset 1s 0.5s ease-out;
  -o-transition: stroke-dashoffset 1s 0.5s ease-out;
  transition: stroke-dashoffset 1s 0.5s ease-out;
}

.drawn svg .path {
  opacity: 1;
  stroke-dashoffset: 0;
}

/* Estilos do Teclado Numérico */
.keyboard {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  align-items: center;
  background: #e0e0e0;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}

.keyboard-row {
  display: flex;
  gap: 1px;
  justify-content: center;
  width: 100%;
}

.keyboard-btn {
  width: 90px;
  height: 90px;
  border: 0.5px solid #b0b0b0;
  background: white;
  color: #333;
  font-size: 28px;
  font-weight: 400;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  margin: 0;
  box-sizing: border-box;
}

.keyboard-btn:active {
  background: #f44336;
  transform: scale(0.95);
}

.keyboard-row:first-child .keyboard-btn:first-child {
  border-top-left-radius: 8px;
}

.keyboard-row:first-child .keyboard-btn:last-child {
  border-top-right-radius: 8px;
}

.keyboard-row:last-child .keyboard-btn:first-child {
  border-bottom-left-radius: 8px;
}

.keyboard-row:last-child .keyboard-btn:last-child {
  border-bottom-right-radius: 8px;
}

.keyboard-btn.clear-btn {
  background: white;
  color: #666666;
  font-size: 18px;
  font-weight: 400;
}

.keyboard-btn.clear-btn:hover {
  background: #f5f5f5;
}

.keyboard-btn.backspace-btn {
  background: white;
  color: #666;
  font-size: 24px;
}

.keyboard-btn.backspace-btn:hover {
  background: #f5f5f5;
}


#user_pin {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 12px;
  text-align: center;
  padding: 20px 15px;
  border: none;
  border-bottom: 2px solid #f4433677;
  border-radius: 0;
  background: transparent;
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
  color: #333;
  transition: all 0.3s ease;
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

#user_pin:focus {
  outline: none;
  background: rgba(0, 122, 255, 0.02);
}

#user_pin::placeholder {
  color: #C7C7CC;
  font-weight: 300;
  letter-spacing: 2px;
}

#modal-camera {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: none;
  flex-direction: column;
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#modal-camera video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  transform: scaleX(-1);
}

.face-frame {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.face-outline {
  width: 350px;
  height: 620px;
  border: 5px solid #00ff00;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: transparent;
  box-shadow:
    0 0 25px rgba(0, 255, 0, 0.6),
    inset 0 0 25px rgba(0, 255, 0, 0.1);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
  }

  50% {
    border-color: #00cc00;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.8);
  }

  100% {
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
  }
}

.timer-display {
  position: absolute;
  top: -70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #00ff00;
  font-size: 52px;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 12px;
  min-width: 90px;
  text-align: center;
  border: 3px solid #00ff00;
}

.instruction-text {
  position: absolute;
  bottom: -70px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 20px;
  padding: 12px 24px;
  border-radius: 12px;
  text-align: center;
  white-space: nowrap;
}


@media (max-width: 768px) {
  .face-frame {
    transform: scale(0.75);
  }

  .timer-display {
    font-size: 42px;
    top: -60px;
    padding: 10px 20px;
  }

  .instruction-text {
    font-size: 18px;
    bottom: -60px;
    padding: 10px 20px;
  }

  .face-outline {
    width: 520px;
    height: 900px;
  }
}

/* Media Queries para Tablets Grandes (14+ polegadas) em Landscape */
@media screen and (orientation: landscape) and (min-width: 1025px) and (max-width: 1400px) {
  .avatar-container {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 8px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .avatar-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    width: 100%;
    margin-top: 40px;
    margin-bottom: 0;
    padding-right: 40px;
  }

  .avatar-container img {
    max-height: 400px;
    max-width: 380px;
    margin: 160px 120px 0 auto;
    display: block;
  }

  #batimento-ponto .wrapper {
    padding: 10px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }

  #batimento-ponto .card {
    width: 38%;
    max-width: 320px;
    min-width: 280px;
  }

  .card {
    padding: 18px;
    margin: 0 auto;
  }

  .keyboard {
    margin: 8px 0;
    padding: 8px;
    max-width: 280px;
  }

  .keyboard-btn {
    width: 68px;
    height: 68px;
    font-size: 16px;
  }

  #user_pin {
    font-size: 18px;
    letter-spacing: 5px;
    padding: 10px 8px;
  }

  .card_action button {
    font-size: 14px;
    padding: 10px 20px;
    min-height: 38px;
  }
}

/* Media Queries para Monitores Grandes (21+ polegadas) */
@media screen and (orientation: landscape) and (min-width: 1401px) {
  .avatar-container {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 15px;
    width: 100%;
  }

  .avatar-container img {
    max-height: 300px;
    max-width: 350px;
    margin: 10px 500px 0 auto;
    display: block;
  }

  #batimento-ponto .wrapper {
    padding: 20px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }

  #batimento-ponto .card {
    width: 40%;
    max-width: 350px;
    min-width: 350px;
  }

  .card {
    padding: 25px;
    margin: 0 auto;
  }

  .keyboard {
    margin: 20px 0;
    padding: 15px;
    max-width: 420px;
  }

  .keyboard-btn {
    width: 75px;
    height: 75px;
    font-size: 24px;
  }

  #user_pin {
    font-size: 28px;
    letter-spacing: 10px;
    padding: 18px 15px;
  }

  .card_action button {
    font-size: 20px;
    padding: 16px 32px;
    min-height: 52px;
  }
}

@media screen and (orientation: landscape) {
  .modal-content {
    width: 500px !important;
    max-width: 80vw !important;
    padding: 30px !important;
  }
}

@media screen and (max-height: 600px) {
  .modal-content {
    padding: 20px !important;
    width: 350px !important;
    max-width: 95vw !important;
  }
}