/* ===================================
   AUTH PAGE
=================================== */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f4f4f4;
}

/* ===================================
   GREEN BAR
=================================== */

.auth-bar {
  margin: 20px auto;
  max-width: 1200px;
  width: calc(100% - 40px);

  height: 65px;
  background: #0aa64f;
  border-radius: 20px;

  display: flex;
  align-items: center;
  padding: 0 32px;
}

.auth-bar__text {
  font-size: 28px;
  font-weight: 600;
  color: #ffffff;
}

/* ===================================
   CONTENT
=================================== */

.auth-content {
  flex: 1;

  max-width: 1200px;
  width: 100%;

  margin: 0 auto;
  padding: 40px 20px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;

  box-sizing: border-box;
}

/* ===================================
   HERO IMAGE
=================================== */

.auth-hero {
  flex: 1;
  display: flex;
  justify-content: center;
}

.auth-hero__img {
  width: 380px;
  max-width: 100%;
  height: auto;
}

/* ===================================
   CARD FORM
=================================== */

.auth-card {
  width: 380px;
  max-width: 100%;
}

.auth-card__title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #0b78c6;
}

/* ===================================
   ERRORS
=================================== */

.auth-card__errors {
  background: #ffe5e5;
  border: 1px solid #ffb3b3;
  color: #b30000;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
}

.auth-card__errors ul {
  margin: 0;
  padding-left: 18px;
}

/* ===================================
   FORM
=================================== */

.auth-form {
  display: flex;
  flex-direction: column;
  align-items: center; /* 🔥 centra botón y link */
}

.auth-field {
  width: 100%;
  margin-bottom: 14px;
}

.auth-label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
}

/* ===================================
   INPUTS
=================================== */

.auth-input {
  width: 100%;
  height: 42px;
  padding: 0 16px;

  border-radius: 999px;
  border: 2px solid #0b78c6;

  outline: none;
  font-size: 14px;
  background: #ffffff;
  transition: 0.2s ease;
}

.auth-input:focus {
  border-color: #0aa64f;
}

/* ===================================
   BUTTON
=================================== */

.auth-btn {
  margin-top: 20px;

  background: #0b78c6;
  color: #ffffff;

  border: none;
  border-radius: 999px;

  padding: 12px 48px;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;
  transition: 0.2s ease;
}

.auth-btn:hover {
  background: #095fa3;
}

/* ===================================
   LINK TO LOGIN (IGUAL QUE LOGIN)
=================================== */

.auth-small {
  margin-top: 18px;
  font-size: 14px;
  text-align: center;
  color: #555;
}

.auth-small .auth-link {
  color: #0b78c6;
  font-weight: 600;
  text-decoration: none;
}

.auth-small .auth-link:hover {
  text-decoration: underline;
}

/* ===================================
   BOTTOM BAR
=================================== */

.auth-bottom-bar {
  height: 40px;
  background: #0b78c6;
  width: 100%;
}

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width: 1024px) {

  .auth-content {
    gap: 60px;
  }

  .auth-hero__img {
    width: 320px;
  }
}

@media (max-width: 768px) {

  .auth-content {
    flex-direction: column;
    gap: 40px;
    padding: 20px;
  }

  .auth-hero {
    order: -1; /* imagen arriba */
  }

  .auth-hero__img {
    width: 260px;
  }

  .auth-bar__text {
    font-size: 22px;
  }
}
