/* --------------------------------
   MODAIS (Login / Cadastro)
--------------------------------- */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  box-sizing: border-box;
}

.modal-box {
  background: #ffffff;
  margin: 60px auto;
  padding: 30px 24px;
  border-radius: 10px;
  max-width: 360px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  box-sizing: border-box;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-box h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: center;
  color: #00A67E;
}

.modal-box label {
  font-size: 0.85rem;
  font-weight: 600;
  display: block;
  margin: 10px 0 5px;
  color: #333;
}

.modal-box input,
.modal-box select  {
  width: 100%;
  font-size: 0.9rem;
  padding: 8px 10px;
  margin-bottom: 12px;
  border: 1.5px solid #ccc;
  border-radius: 6px;
  transition: border-color 0.3s;
  box-sizing: border-box;
  background: #fff;
  /* (opcional) deixar o select com “setinha” padronizada */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px; /* espaço para a seta */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='%23777' stroke-width='2' fill='none'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px 18px;
}

.modal-box input:invalid,
.modal-box select:invalid {
  border-color: red;
  color: #64748B;
}

.modal-box input:focus,
.modal-box select:focus {
  border-color: #00A67E;
  outline: none;
  box-shadow: none;
}

.modal-box select option[disabled] { color: #64748B; }

.modal-box button {
  width: 100%;
  font-size: 0.95rem;
  padding: 10px;
  background-color: #00A67E;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  margin-top: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

.modal-box button:hover {
  background-color: #0099CC;
}

.modal-box p {
  font-size: 0.85rem;
  margin-top: 12px;
  text-align: center;
}

.modal-box a {
  color: #0077cc;
  text-decoration: underline;
}

.mensagem-retorno {
  display: none;
  color: red;
  font-size: 0.85rem;
  margin-bottom: 12px;
  text-align: center;
}

.modal-links {
  text-align: center;
  margin-top: 10px;
}

.modal-links a {
  display: block;
  color: #007BFF;
  margin: 4px 0;
  text-decoration: none;
}

.modal-links a:hover {
  text-decoration: underline;
}

input[readonly] {
  background-color: #f0f0f0 !important;
  cursor: not-allowed;
}
