body {
  margin: 0;
  padding: 0;
  height: 100vh;
  font-family: 'Segoe UI', sans-serif;
  background: url('/static/img/fondo_clinica.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6); /* oscurece un poco */
  backdrop-filter: blur(3px);
  z-index: -1;
}


.login-wrapper {
  width: 400px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  color: #ffffff;
  font-size: 24px;
  margin-bottom: 20px;
}

.login-wrapper span {
  color: #60a5fa;
}

.doctor-image {
  width: 80px;
  margin: 15px 0 25px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i {
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  color: white;
  font-size: 14px;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  background: rgba(255,255,255,0.2);
  border: none;
  outline: none;
  border-radius: 10px;
  color: #e0f2fe;
  box-sizing: border-box;
}


.input-field::placeholder {
  color: #cbd5e1;
}

.input-field:focus {
  border-color: #60a5fa;
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 5px #60a5fa66;
}

.show-password {
  text-align: left;
  font-size: 14px;
  color: #e2e8f0;
  margin-bottom: 20px;
}

button {
  width: 100%;
  padding: 12px;
  background-color: #3b82f6;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

button:hover {
  background-color: #2563eb;
  transform: scale(1.02);
  box-shadow: 0 0 18px #60a5fa80;
}

.messages p {
  color: #f87171;
  margin-top: 10px;
}
.input-group,
.input-field {
  max-width: 100%;
  box-sizing: border-box;
}
@keyframes floatDoctor {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

.doctor-image {
  width: 80px;
  margin-bottom: 25px;
  animation: floatDoctor 3s ease-in-out infinite;
}
