@import url("https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Urbanist', sans-serif;
  height: 100%;
  font-size: 10px;
}

body {
  background-color: #ffffff;
}

.login-container {
  display: flex;
  height: 100vh;
  width: 100%;
}

/* Panel izquierdo con branding */
.login-left {
  flex: 1;
  background: #02394A;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 2rem;
  overflow: visible;
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-left img {
  width: 250px;
  max-width: none;
  height: auto;
}

/* Panel derecho con el formulario */
.login-right {
  flex: 1;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem;
}

.form-container {
  width: 100%;
  max-width: 400px;
}

.welcome-title {
  font-size: 3.2rem;
  font-weight: 400;
  color: rgb(2, 57, 74);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.brand {
  font-weight: 600;
  color: rgb(2, 57, 74);
}

.welcome-subtitle {
  color: rgb(129, 129, 129);
  margin-bottom: 4rem;
  font-size: 1.6rem;
  font-weight: 300;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 1.4rem;
  font-weight: 500;
  color: rgb(2, 57, 74);
  margin-bottom: 0.8rem;
}

.password-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.forgot-password {
  font-size: 1.3rem;
  color: rgb(1, 171, 170);
  text-decoration: none;
  font-weight: 400;
}

.forgot-password:hover {
  color: #017878;
  text-decoration: underline;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  padding: 1.6rem 1.8rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1.5rem;
  font-family: 'Urbanist', sans-serif;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: rgb(1, 171, 170);
  box-shadow: 0 0 0 3px rgba(1, 171, 170, 0.1);
}

input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="text"]::placeholder {
  color: #a0aec0;
  font-weight: 300;
}

.password-input-container {
  position: relative;
  display: block;
  width: 100%;
}

.password-input-container input[type="password"],
.password-input-container input[type="text"] {
  padding: 1.6rem 5rem 1.6rem 1.8rem;
  width: 100%;
  box-sizing: border-box;
}

.password-toggle {
  position: absolute;
  right: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #a0aec0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  z-index: 10;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: rgb(1, 171, 170);
}

.password-toggle:focus {
  outline: none;
  color: rgb(1, 171, 170);
}

.login-button {
  background-color: rgb(1, 171, 170);
  color: white;
  padding: 1.8rem 2.4rem;
  border: none;
  border-radius: 11px;
  font-weight: 400;
  font-size: 1.6rem;
  font-family: 'Urbanist', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.login-button:hover {
  background-color: #017878;
  color: white;
  text-decoration: none;
}

.login-button:active {
  transform: translateY(0);
}

.error-box {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 1.5rem 2rem;
  border-radius: 11px;
  margin-bottom: 2rem;
  font-size: 1.4rem;
}

.error-box p {
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }
  
  .login-left,
  .login-right {
    flex: none;
  }
  
  .login-left {
    min-height: 200px;
    padding: 2rem;
  }
  
  .login-left img {
    max-width: 250px;
  }
  
  .welcome-title {
    font-size: 2.4rem;
  }
  
  .form-container {
    max-width: none;
  }
}
