@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom right, #e9f5f6, #b3e5fc);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #444;
}



/* Logo flotante */
.logo {
  width: 70%;
  max-width: 300px;
  aspect-ratio: 704 / 202;
  margin: 0 auto 20px auto;
  background: url('imagenes/logo_galeno.jpg') no-repeat center center;
  background-size: contain;
  animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 768px) {
  .logo {
    max-width: 250px;
  }
}

@media (max-width: 480px) {
  .logo {
    max-width: 200px;
  }
}

/* Contenedor principal */
.container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  padding: 40px 30px;
  border-radius: 10px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Títulos */
h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #007bff;
}

h3 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #555;
}

/* Campos de entrada */
input {
  padding: 12px;
  margin: 10px 0;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
}

input::placeholder {
  color: #aaa;
}

/* Botones */
button {
  width: 100%;
  padding: 14px;
  margin-top: 15px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background-color: #007bff;
  color: #fff;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #0056b3;
  transform: scale(1.03);
}

/* Botones rápidos */
.quick-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.quick-options button {
  background-color: #e1f6ec;
  color: #1b5e20;
  border: 1px solid #25D366;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.quick-options button:hover {
  background-color: #25D366;
  color: #fff;
}

/* Campo de contraseña con ojito */
.password-container {
  position: relative;
  width: 100%;
  margin: 10px 0;
}

.password-container input {
  padding: 12px;
  padding-right: 40px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #666;
  user-select: none;
}

.toggle-password:hover {
  color: #007bff;
}

/* iframe embebido */
iframe {
  margin-top: 20px;
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.5s ease-in-out;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .container::before {
    width: 100px;
    height: 100px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 18px;
  }

  input, button {
    font-size: 15px;
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .container::before {
    width: 80px;
    height: 80px;
  }

  body {
    padding: 10px;
  }

  .container {
    padding: 25px 15px;
    border-radius: 12px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 16px;
  }

  .toggle-password {
    font-size: 16px;
    right: 8px;
  }

  iframe {
    height: 300px;
  }
}

.hidden {
  display: none !important;
}
.password-container {
  position: relative;
  width: 100%;
}
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}