/* 
  ----------------------------------------------------
  RESET & BASE
  ----------------------------------------------------
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: "Open Sans", "Montserrat", sans-serif;
  background: #e6f7f8; /* Lighter blue background like in Image 2 */
  color: #333;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: none;
}

a {
  text-decoration: none;
  color: #00a3ad; /* Turquoise from the images */
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: #00848c;
}

/* 
  ----------------------------------------------------
  LOGIN CONTAINER
  ----------------------------------------------------
*/
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #e6f7f8; /* Matching the light blue from Image 2 */
}

/* 
  ----------------------------------------------------
  BACKGROUND SHAPES 
  ----------------------------------------------------
*/
.background-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.shape-1 {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 150%;
  height: auto;
  opacity: 0.25;
  transform: rotate(45deg);
}

.shape-1 path {
  fill: #b3ecf0; /* Lighter turquoise */
}

.shape-2 {
  position: absolute;
  bottom: -50%;
  right: -50%;
  width: 150%;
  height: auto;
  opacity: 0.25;
  transform: rotate(-30deg);
}

.shape-2 path {
  fill: #daf8fc; /* Very light turquoise */
}

/* 
  ----------------------------------------------------
  LOGIN CARD
  ----------------------------------------------------
*/
.login-card {
  position: relative;
  background: #ffffff;
  width: 400px;
  max-width: 90%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 40px 30px;
  z-index: 2;
  text-align: center;
}

/* Logo */
.logo img {
  width: 80px;
  margin: 0 auto 20px;
  border-radius: 50%; /* Makes the logo circular like in Image 2 */
  background: #fff;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

/* Título */
.login-card h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #00595c; /* Darker turquoise for contrast */
  font-weight: 600;
}

.subtitle {
  font-size: 0.92rem;
  color: #666;
  margin-bottom: 1.5rem;
}

/* 
  ----------------------------------------------------
  FORM
  ----------------------------------------------------
*/
.login-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Input container */
.input-group {
  position: relative;
  margin-bottom: 1.2rem;
}

/* Input styling */
.input-group input {
  display: block;
  width: 100%;
  border: 1px solid #e0e0e0; /* Lighter border */
  border-radius: 8px;
  background-color: #fff; /* White background like in Image 2 */
  padding: 15px 16px;
  font-size: 0.95rem;
  color: #333;
  transition: border-color 0.3s ease-in-out, box-shadow 0.3s;
  line-height: 1.2;
}

/* Focus effect */
.input-group input:focus {
  outline: none;
  border-color: #00bcc7; /* Turquoise from the images */
  box-shadow: 0 0 0 3px rgba(0, 188, 199, 0.1);
}

/* Label styling */
.input-group label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  background: transparent; /* No background */
  color: #777;
  font-size: 0.92rem;
  pointer-events: none;
  transition: 0.2s ease all;
  padding: 0 4px;
}

/* Label animation */
.input-group input:focus + label,
.input-group input:valid + label,
.input-group input:not(:placeholder-shown) + label {
  top: 0;
  transform: translateY(-50%) scale(0.85);
  color: #00bcc7; /* Turquoise from the images */
  background: #fff;
}

/* Required field marker */
.gl-form-asterisk {
  color: #e32b2b;
  font-weight: normal;
}

/* 
  ----------------------------------------------------
  BUTTON
  ----------------------------------------------------
*/
.btn-login {
  background: #00bcc7; /* Solid turquoise like in Image 2 */
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 0;
  cursor: pointer;
  transition: background 0.3s ease-in-out, transform 0.2s;
  text-transform: none; /* Matches "Ingresar" in Image 2 */
}

.btn-login:hover {
  background: #00a3ad;
  transform: translateY(-1px);
}

/* 
  ----------------------------------------------------
  RESULT MESSAGE
  ----------------------------------------------------
*/
#resultLogin {
  margin-top: 1rem;
  padding: 10px;
  border-radius: 6px;
  font-size: 0.9rem;
}

#resultLogin.error {
  background-color: #ffe6e6;
  color: #cc0000;
  border-left: 3px solid #cc0000;
}

#resultLogin.success {
  background-color: #e6ffee;
  color: #006600;
  border-left: 3px solid #006600;
}

/* 
  ----------------------------------------------------
  RESPONSIVE
  ----------------------------------------------------
*/
@media (max-width: 768px) {
  .login-card {
    width: 90%;
    padding: 30px 20px;
  }

  .login-card h1 {
    font-size: 1.5rem;
  }

  .btn-login {
    font-size: 0.95rem;
    padding: 12px 0;
  }
}

@media (max-width: 480px) {
  .login-card {
    width: 95%;
    padding: 25px 15px;
  }
}