/* ====== Modal ====== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; 
  height: 100%;
  background-color: rgba(0,0,0,0.6);
}

/* ====== Login Card ====== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.login-card {
  background: #fff;
  width: 550px;
  height: 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(0,0,0,0.2);
}

.login-header {
 
  padding: 100px 0;
  text-align: center;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}


.login-header h2 {
  color: white;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.login-body {
  padding: 25px;
}

.login-body label {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-weight: 500;
}

.login-body input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 8px;
  margin-bottom: 20px;
  outline: none;
  transition: all 0.3s;
}

.login-body input:focus {
  border-color: #28a745;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 20px;
}

.login-options a {
  text-decoration: none;
  color: #28a745;
}

.login-options input[type="checkbox"] {
  margin-right: 5px;
}

.login-btn {
  background: #1279ce;
  color: white;
  border: none;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s;
}
.logout-btn {
  background: #323633;
  color: white;
  border: none;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 25px;
  cursor: pointer;
  transition: background 0.3s;
}

.login-btn:hover {
  background: #218838;
}

.erro {
  color: red;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

.login-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.login-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.notification {
  /* background-color: #ffc107;
  color: #212529;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  margin-bottom: 15px;
  font-size: 14px; */
  margin-bottom: 10px; padding: 10px; background: #1a1a1a; border-radius: 5px; color: #ffc107;
}

.input-file {
  width: 100%;
  padding: 10px;
  border: 1px solid #555;
  border-radius: 8px;
  background-color: #222;
  color: #fff;
  cursor: pointer;
  margin-top: 10px;
}

.synthexa {
     background-image: url('/static/img/Synthexa.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 250px; /* ou outro tamanho */
  width: 100%;
}

/* ====== Responsividade Mobile ====== */
@media (max-width: 768px) {
  .login-card {
    width: 90%;
    max-width: 400px;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
  }

  .login-header {
    padding: 60px 0;
  }

  .synthexa {
    height: 150px;
  }

  .login-body {
    padding: 20px;
  }

  .login-body input {
    padding: 12px 8px;
    font-size: 16px;
    margin-bottom: 15px;
  }

  .login-actions {
    flex-direction: column;
    gap: 10px;
  }

  .login-btn,
  .logout-btn {
    padding: 14px;
    font-size: 16px;
    min-height: 48px;
  }

  .input-file {
    padding: 12px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .login-card {
    width: 95%;
    margin: 10px;
  }

  .login-header {
    padding: 40px 0;
  }

  .synthexa {
    height: 120px;
  }

  .login-body {
    padding: 15px;
  }

  .login-body label {
    font-size: 14px;
  }
}

/* ====== Estilos para Modais de Migração ====== */
.login-card table {
  font-size: 13px;
  margin-top: 15px;
}

.login-card table th {
  background: #4CAF50;
  color: white;
  padding: 10px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 10;
}

.login-card table td {
  padding: 8px;
  border: 1px solid #ddd;
}

.login-card table tr:nth-child(even) {
  background: #f9f9f9;
}

.login-card table tr:hover {
  background: #f1f1f1;
}

/* Mobile - Modais de Migração */
@media (max-width: 768px) {
  #modalMigracaoImobiliaria .login-card,
  #modalMigracaoContato .login-card {
    width: 95%;
    max-width: 95%;
    margin: 10px;
  }

  .login-card table {
    font-size: 11px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .login-card table thead,
  .login-card table tbody,
  .login-card table tr,
  .login-card table th,
  .login-card table td {
    display: block;
  }

  .login-card table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .login-card table tr {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
  }

  .login-card table td {
    border: none;
    position: relative;
    padding: 10px 10px 10px 45%;
    text-align: left;
    border-bottom: 1px solid #eee;
  }

  .login-card table td:before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: 40%;
    padding-right: 10px;
    white-space: nowrap;
    font-weight: bold;
    color: #4CAF50;
  }

  .login-card table td:last-child {
    border-bottom: 0;
  }

  #registrosWon ul {
    padding-left: 20px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .login-card table {
    font-size: 10px;
  }

  .login-card table td {
    padding: 8px 8px 8px 42%;
  }

  #registrosWon {
    font-size: 11px;
  }

  #registrosWon h4 {
    font-size: 14px;
  }
}
