:root {
  --primary-color: #37517e;
  --secondary-color: #47b2e4;
  --background-color: #f5f7fb;
  --text-color: #444444;
  --muted-color: #6c757d;
  --white: #ffffff;
  --border-color: #dce3ec;
  --danger-color: #dc3545;
  --success-color: #198754;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Roboto", sans-serif;
  background:
    linear-gradient(
      135deg,
      rgba(55, 81, 126, 0.08),
      rgba(71, 178, 228, 0.08)
    ),
    var(--background-color);

  color: var(--text-color);
}


/* ================================
   CONTENEDOR PRINCIPAL
================================ */

.auth-page {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 40px 20px;
}

.auth-container {
  width: 100%;
  max-width: 450px;
}


/* ================================
   MARCA / LOGO
================================ */

.auth-brand {
  text-align: center;
  margin-bottom: 25px;
}

.auth-brand a {
  display: inline-block;
}

.auth-logo {
  width: 150px;
  max-width: 70%;
  height: auto;

  margin-bottom: 15px;
}

.auth-brand h1 {
  font-family: "Jost", sans-serif;

  font-size: 30px;
  font-weight: 700;

  color: var(--primary-color);

  margin: 0 0 10px;
}

.auth-brand p {
  margin: 0 auto;

  max-width: 390px;

  font-size: 15px;
  line-height: 1.6;

  color: var(--muted-color);
}


/* ================================
   TARJETA LOGIN
================================ */

.auth-card {
  background: var(--white);

  border-radius: 20px;

  padding: 35px;

  box-shadow:
    0 15px 50px rgba(55, 81, 126, 0.12);

  border: 1px solid rgba(55, 81, 126, 0.06);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-icon {
  width: 68px;
  height: 68px;

  margin: 0 auto 15px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(71, 178, 228, 0.12);
}

.auth-icon i {
  font-size: 30px;
  color: var(--secondary-color);
}

.auth-card-header h2 {
  font-family: "Jost", sans-serif;

  font-size: 25px;
  font-weight: 700;

  color: var(--primary-color);

  margin: 0 0 7px;
}

.auth-card-header p {
  margin: 0;

  font-size: 14px;
  line-height: 1.5;

  color: var(--muted-color);
}


/* ================================
   CAMPOS
================================ */

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;

  margin-bottom: 8px;

  font-size: 14px;
  font-weight: 500;

  color: var(--text-color);
}

.input-container {
  position: relative;
}

.input-container > i {
  position: absolute;

  left: 15px;
  top: 50%;

  transform: translateY(-50%);

  color: #8794a6;

  font-size: 17px;

  pointer-events: none;
}

.input-container input {
  width: 100%;
  height: 52px;

  padding: 0 48px;

  border: 1px solid var(--border-color);
  border-radius: 11px;

  background: #ffffff;

  font-size: 15px;

  color: var(--text-color);

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.input-container input::placeholder {
  color: #a0a9b4;
}

.input-container input:hover {
  border-color: #b9c7d8;
}

.input-container input:focus {
  border-color: var(--secondary-color);

  box-shadow:
    0 0 0 4px rgba(71, 178, 228, 0.12);

  background: #ffffff;
}


/* ================================
   MOSTRAR CONTRASEÑA
================================ */

.password-toggle {
  position: absolute;

  right: 12px;
  top: 50%;

  transform: translateY(-50%);

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  border-radius: 8px;

  background: transparent;

  color: #8794a6;

  cursor: pointer;

  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.password-toggle:hover {
  background: #f1f4f8;
  color: var(--primary-color);
}

.password-toggle:focus {
  outline: none;

  box-shadow:
    0 0 0 3px rgba(71, 178, 228, 0.15);
}


/* ================================
   BOTÓN LOGIN
================================ */

.login-button {
  width: 100%;
  min-height: 52px;

  margin-top: 5px;

  border: none;
  border-radius: 11px;

  background: var(--primary-color);

  color: var(--white);

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.login-button:hover {
  background: #2d456c;

  box-shadow:
    0 8px 20px rgba(55, 81, 126, 0.22);

  transform: translateY(-1px);
}

.login-button:active {
  transform: translateY(0);
}

.login-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;

  transform: none;
  box-shadow: none;
}


/* ================================
   MENSAJES LOGIN
================================ */

.login-message {
  display: none;

  margin-bottom: 15px;

  padding: 11px 13px;

  border-radius: 9px;

  font-size: 14px;
  line-height: 1.4;
}

.login-message.error {
  display: block;

  color: #842029;

  background: #f8d7da;

  border: 1px solid #f5c2c7;
}

.login-message.success {
  display: block;

  color: #0f5132;

  background: #d1e7dd;

  border: 1px solid #badbcc;
}


/* ================================
   PIE DE SEGURIDAD
================================ */

.auth-help {
  margin-top: 25px;
  padding-top: 20px;

  border-top: 1px solid #edf0f4;

  text-align: center;

  font-size: 13px;
  line-height: 1.5;

  color: var(--muted-color);
}

.auth-help i {
  margin-right: 6px;

  color: var(--secondary-color);
}


/* ================================
   VOLVER AL INICIO
================================ */

.back-home {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  margin-top: 22px;

  text-decoration: none;

  color: var(--primary-color);

  font-size: 14px;
  font-weight: 500;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.back-home:hover {
  color: var(--secondary-color);

  transform: translateX(-2px);
}


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 576px) {

  .auth-page {
    padding: 25px 15px;
  }

  .auth-card {
    padding: 28px 22px;

    border-radius: 16px;
  }

  .auth-brand h1 {
    font-size: 26px;
  }

  .auth-brand p {
    font-size: 14px;
  }

  .auth-card-header h2 {
    font-size: 23px;
  }

  .input-container input {
    height: 50px;
  }

  .login-button {
    min-height: 50px;
  }

}


/* ================================
   PANTALLAS MUY PEQUEÑAS
================================ */

@media (max-width: 360px) {

  .auth-card {
    padding: 24px 17px;
  }

  .auth-brand h1 {
    font-size: 24px;
  }

}