/* =========================================================
   FACELOGIN - MODAL PRINCIPAL
   ========================================================= */
.facelogin-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1050;
}

.facelogin-backdrop {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.6);
}

.facelogin-dialog {
  position: relative;
  margin: 5% auto;
  max-width: 500px;
}

.facelogin-content {
  background: #fff;
  border-radius: 8px;
  padding: 10px;
}

.facelogin-body {
  padding-top: 15px;
}

.facelogin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
}

.facelogin-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.facelogin-close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: #555;
  transition: color 0.3s ease;
}
.facelogin-close:hover {
  color: #e74c3c;
}

.facelogin-footer {
  text-align: right;
  padding: 8px 12px;
  font-style: italic;
  font-size: .70rem;
  color: #555;
  margin-top: 30px;
}

/* =========================================================
   CÂMERA
   ========================================================= */
#camera {
  width: 260px !important;             
  height: 340px !important;            
  border-radius: 50% / 50% !important; /* formato oval */
  border: 6px solid #203a53 !important;
  box-shadow: 0 0 18px rgba(32, 58, 83, 0.55) !important;
  object-fit: cover !important;
  display: block !important;
  margin: 0 auto 8px !important;       
  transform: scaleX(-1); /* espelhado */
  max-height: 100% !important;
}

/* =========================================================
  Zoom in/out
   ========================================================= */
#camera.zoom-in {
  animation: zoomIn 0.6s ease forwards;
  box-shadow: 0 0 25px rgba(46, 204, 113, 0.7);
}
@keyframes zoomIn {
  from { transform: scale(1) scaleX(-1); }
  to   { transform: scale(1.2) scaleX(-1); }
}

#camera.zoom-out {
  animation: zoomOut 0.6s ease forwards;
  box-shadow: 0 0 25px rgba(231, 76, 60, 0.7);
}
@keyframes zoomOut {
  from { transform: scale(1) scaleX(-1); }
  to   { transform: scale(0.8) scaleX(-1); }
}

/* =========================================================
   OVERLAY
   ========================================================= */
.camera-ring {
  position: relative;
  display: block !important;
  width: 260px;
  height: 340px;
  margin: 0 auto 8px;
  border-radius: 50% / 50%; 
  overflow: hidden;
}

.camera-sweep {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}

/* =========================================================
   STATUS
   ========================================================= */
#status {
  margin-top: 20px !important;
  font-size: 1rem;
  font-weight: 500 !important;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color 0.3s ease;
}
#status.success { color: #27ae60; }
#status.fail    { color: #e74c3c; }
#status.loading { color: #2980b9; }

/* Sucess */
#status.status-banner {
  background: #203a53;
  border: 1px solid #203a53;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 600;
}
#status.status-banner .status-chip {
  display: inline-block;
}

/* =========================================================
   Submit
   ========================================================= */
.login-form-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#loginbtn {
  margin-right: auto;
}

button#face-login-button {
  margin-left: auto;
  background-color: #1f3952;
  color: white;
}
button#face-login-button:hover {
  background-color: #284a6e;
  color: white;
}

.facelogin-content {
    background: #fff !important;
    color: #1f1f1f !important;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.facelogin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #fff !important;
    border-bottom: 0px solid #444 !important;
}

.facelogin-close i {
  color: black !important;
  transition: color 0.3s ease;
}

.facelogin-close:hover i {
  color: red;
}

/* Overlay */
#lampada-icon-overlay {
  position: absolute;
  top: 25%; 
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 30;
  width: 35px;
  height: 50px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0); 
}

#lampada-icon-overlay i {
    font-size: 22px;
  color: #ffffff;
}

/* ======================
   MOBILE
   ====================== */
@media screen and (max-width: 768px) {
  #overlay {
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) scaleX(-1) !important; 
    width: 100% !important;
    height: 100% !important;
  }
}
