/* css/registro-login.css */

/* Panel de autenticación */
.auth-panel {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.auth-title {
  text-align: center;
  margin-bottom: 24px;
}

.auth-title h3 {
  color: #1a3a4a;
  margin: 0 0 8px 0;
  font-size: 1.4rem;
}

.auth-title p {
  color: #666;
  font-size: 0.85rem;
  margin: 0;
}

/* Botones de registro */
.auth-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.btn-registro {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pescador {
  background: #2ecc71;
  color: white;
}

.btn-pescador:hover {
  background: #27ae60;
}

.btn-club {
  background: #3498db;
  color: white;
}

.btn-club:hover {
  background: #2980b9;
}

/* Divisor */
.auth-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: #ddd;
}

.auth-divider::before {
  left: 0;
}

.auth-divider::after {
  right: 0;
}

.auth-divider span {
  background: white;
  padding: 0 12px;
  color: #999;
  font-size: 0.8rem;
}

/* Formulario de login */
.login-form {
  margin-top: 8px;
}

.login-group {
  margin-bottom: 16px;
}

.login-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.login-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.login-group input:focus {
  outline: none;
  border-color: #3498db;
}

.btn-login {
  width: 100%;
  padding: 10px;
  background: #1a3a4a;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.btn-login:hover {
  background: #0f2a36;
}

/* Mensaje de autenticación */
.auth-message {
  margin-top: 12px;
  padding: 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  text-align: center;
  display: none;
}

.auth-message.success {
  display: block;
  background: #d4edda;
  color: #155724;
}

.auth-message.error {
  display: block;
  background: #f8d7da;
  color: #721c24;
}

/* Estilos ventana flotante */

/* Modal overlay */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  max-height: 80vh;
  overflow-y: auto;
}

/* Header */
.modal-header {
  padding: 16px 20px;
  background: #1a3a4a;
  color: white;
  border-radius: 12px 12px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

/* BOTÓN CERRAR*/
#modalClose {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  font-weight: 300;
  line-height: 1;

  background: transparent;
  color: white;

  transition: all 0.25s ease;
  padding: 0;
  flex-shrink: 0;
}

#modalClose:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  transform: rotate(90deg);
}

#modalClose:active {
  transform: rotate(90deg) scale(0.9);
}

/* Body */
.modal-body {
  padding: 20px;
}

/* Formularios dentro del modal */
.modal-group {
  margin-bottom: 16px;
}

.modal-body input,
.modal-body select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.modal-body input:focus,
.modal-body select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.modal-body label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.modal-note {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: #856404;
  margin-bottom: 16px;
}

/* Botones del modal */
.btn-modal {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.btn-modal-pescador {
  background: #2ecc71;
  color: white;
}

.btn-modal-pescador:hover {
  background: #27ae60;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.btn-modal-club {
  background: #3498db;
  color: white;
}

.btn-modal-club:hover {
  background: #2980b9;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-modal:active {
  transform: scale(0.98);
}

/* Scrollbar personalizada */
.modal-container::-webkit-scrollbar {
  width: 6px;
}

.modal-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0 0 12px 12px;
}

.modal-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.modal-container::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}