:host {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header Styles */
.header-container {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.header-image {
  position: relative;
  width: 100%;
  height: 250px;
  background-image: url('/img/header2.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  contain: paint;
}

.water-drop-container {
  position: absolute;
  top: 26%;
  left: 49%;
  transform: translate(-50%, -50%);
  width: 41px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.water-drop {
  position: absolute;
  width: 41px;
  height: 60px;
}

.text-drop {
  position: relative;
  color: white;
  top: 15%;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 2;
  pointer-events: none;
}

.header-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #002147;
  text-align: center;
  padding: 0px;
  box-sizing: border-box;
}

.sub-title {
  font-size: 3.0rem;
  margin-bottom: 0px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  transform: translate(-4%);
}

/* Main Content Styles */
.main-content {
  flex: 1;
  background-color: #f0f0f0;
  position: relative;
  min-height: 60vh; /* Aumentado para mayor espacio vertical */
}

.main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(240, 240, 240, 0.7);
}

.login-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 360px;
}

.login-box {
  width: 100%;
}

.login-card {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 100%;
}

/* Estilo para los paneles y animaciones */
.position-relative {
  min-height: 450px;
  position: relative;
}

.panel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

.d-none {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  z-index: -1 !important;
}

/* Configuración para animate.css */
.animate__animated {
  --animate-duration: 0.8s; /* Aumentado para una transición más suave */
}

.login-header {
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.login-header h2 {
  margin: 0;
  font-size: 1.2rem;
  color: #0088cc;
}

.login-actions {
  margin-top: 1rem;
}

.password-recovery a {
  color: #0088cc;
  text-decoration: none;
  font-size: 0.9rem;
}

.password-recovery a:hover {
  text-decoration: underline;
}

/* Estilos para los inputs con iconos */
.input-with-icon {
  background-image: url("data:image/svg+xml,%3Csvg fill='gray' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4C2.897 4 2 4.897 2 6v12c0 1.103.897 2 2 2h16c1.103 0 2-.897 2-2V6c0-1.103-.897-2-2-2zM4 6h16l-8 5-8-5zm0 12V8l8 5 8-5v10H4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px 20px;
  padding-right: 35px;
}

.input-with-lock {
  background-image: url("data:image/svg+xml,%3Csvg fill='gray' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 8h-1V6c0-2.757-2.243-5-5-5S6 3.243 6 6v2H5c-1.103 0-2 .897-2 2v12c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2V10c0-1.103-.897-2-2-2zM8 6c0-1.654 1.346-3 3-3s3 1.346 3 3v2H8V6zm9 16H5V10h12v12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px 20px;
  padding-right: 35px;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  .login-container {
    padding: 0 1rem;
  }
}