/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
}

/* FONDO GENERAL */
.page-container {
  min-height: 100vh;
  background: #f4f6fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}

/* CONTENEDOR BLANCO GRANDE */
.auth-wrapper {
  width: 100%;
  max-width: 980px;     
  min-height: 520px; 
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.auth-left {
  position: relative;
  flex: 1;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-left-content {
  text-align: center;
  max-width: 360px;
  z-index: 2;
  transform: translateY(-45px);
}

.auth-left-content h2 {
  font-size: 32px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 34px;
}

.info-text {
  font-size: 15px;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.info-icon {
  color: #2563eb;
  font-size: 30px;
}



.auth-logo-decor {
  position: absolute;
  bottom: -135%;
  left: -192%;
  width: 350%;
  z-index: 1;
  pointer-events: none;
}

.auth-logo-decor img {
  width: 100%;
  height: auto;
}



/* LADO DERECHO */
.auth-right {
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
}

/* TARJETA LOGIN (necesita position relative) */
.login-card {
  position: relative;
  width: calc(100% - 64px);
  max-width: 360px;
  background: #ffffff;
  border-radius: 18px;
  padding: 72px 36px 36px;
  box-shadow: 0 20px 50px rgba(121, 125, 134, 0.062);
}

/* CONTENEDOR DEL LOGO */
.logo-container {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  width: 70%;                 
  height: 64px;
  padding: 10px;
  background: #f8fafc;
  border-radius: 16px;
  
  display: flex;
  align-items: center;
  justify-content: center;

  
}


/* LOGO */
.logo-container img {
  max-height: 300%;
  max-width: 300%;
  height: auto;
  width: auto;
  object-fit: contain;
}

.logo img {
  height: 76px;
}

/* INPUTS */
.field {
  margin-bottom: 18px;
}

.field input {
  width: 100%;
  padding: 15px 15px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 14px;
  outline: none;
}

.field input:focus {
  border-color: #6925b6;
}

/* OLVIDÉ CONTRASEÑA */
.forgot {
  text-align: right;
  margin-bottom: 22px;
}

.forgot a {
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
}

/* BOTÓN */
button {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(to right bottom, #6b2fd6 , #1f86d9 );
  color: white;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

button:hover {
  opacity: 0.95;
}

/* REGISTRO */
.register {
  margin-top: 26px;
  font-size: 13px;
  color: #475569;
  text-align: center;
}

.register a {
  color: #2563eb;
  text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .page-container {
    padding: 20px;
    min-height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .auth-wrapper {
    grid-template-columns: 1fr;
    min-height: auto;
    max-width: 100%;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    padding: 30px 20px;
  }

  .login-card {
    width: 100%;
    max-width: 100%;
    padding: 50px 24px 24px;
  }

  .auth-left-content h2 {
    font-size: 24px;
  }

  .logo-container {
    width: 80%;
    height: 50px;
  }

  .logo img {
    height: 60px;
  }

  .field input {
    padding: 12px 12px;
    font-size: 14px;
  }

  button {
    padding: 12px;
    font-size: 14px;
  }

  .register {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .page-container {
    padding: 16px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .auth-right {
    padding: 20px 16px;
  }

  .login-card {
    padding: 40px 16px 16px;
  }

  .field {
    margin-bottom: 14px;
  }

  .forgot {
    margin-bottom: 16px;
  }

  .register {
    margin-top: 16px;
  }
}
