.auth-section {
  min-height: 78vh;
  padding: 138px 0 72px;
  background:
    linear-gradient(135deg, rgba(32, 36, 42, .94), rgba(43, 49, 56, .86) 52%, rgba(179, 57, 57, .42)),
    url('../banner/banner_contact.webp') center/cover no-repeat;
  position: relative;
}

.auth-section.auth-register {
  background:
    linear-gradient(135deg, rgba(32, 36, 42, .9), rgba(43, 49, 56, .76) 54%, rgba(179, 57, 57, .28)),
    url('../banner/banner_article.webp') center/cover no-repeat;
}

.auth-section.auth-forgot {
  background:
    linear-gradient(135deg, rgba(32, 36, 42, .9), rgba(43, 49, 56, .78) 54%, rgba(179, 57, 57, .26)),
    url('../banner/banner_faq.webp') center/cover no-repeat;
}

.auth-section.auth-reset {
  background:
    linear-gradient(135deg, rgba(32, 36, 42, .9), rgba(43, 49, 56, .78) 54%, rgba(179, 57, 57, .26)),
    url('../banner/banner_security.webp') center/cover no-repeat;
}

.auth-section:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 12, 16, .04), rgba(10, 12, 16, .16));
}

.auth-section .container {
  position: relative;
  z-index: 2;
}

.auth-wrap {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 46px;
  align-items: start;
}

.auth-intro {
  color: #fff;
  padding-top: 34px;
}

.auth-intro h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.18;
  font-size: 2.6rem;
}

.auth-intro p {
  width: min(560px, 100%);
  color: rgba(255,255,255,.82);
  font-size: 1.05rem;
  line-height: 1.9;
}

.auth-benefits {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  width: min(560px, 100%);
}

.auth-benefits li {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 12px;
  color: rgba(255,255,255,.9);
  font-weight: 700;
}

.auth-benefits i {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  color: #fff;
  background: var(--color-primary);
  border-radius: 50%;
  font-size: .75rem;
}

.auth-card {
  position: relative;
  padding: 36px;
  background: rgba(255,255,255,.98);
  border-top: 0;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(14, 28, 54, .3);
}

.auth-card:before {
  content: "";
  position: absolute;
  top: 24px;
  left: 36px;
  width: 56px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 99px;
}

.auth-card h2 {
  margin: 0 0 8px;
  padding-top: 18px;
  color: #17202A;
  font-size: 1.7rem;
  font-weight: 800;
}

.auth-card-desc {
  margin: 0 0 22px;
  color: #7a7a7a;
  line-height: 1.65;
  margin-top: 8px;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  margin-bottom: 7px;
  color: #243b55;
  font-weight: 700;
}

.auth-field .form-control {
  height: 48px;
  border-color: #d8dee7;
  border-radius: 6px;
  color: #2f3f52;
  background: #fbfcfe;
}

.auth-field .form-control:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 .2rem rgba(66, 104, 152, .14);
}

.auth-linkbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 18px;
  font-size: .92rem;
}

.auth-linkbar a {
  color: var(--color-blue);
  font-weight: 700;
}
.auth-linkbar a:hover {
  color: #333;
  text-decoration: underline;
}

.auth-captcha {
  margin: 8px 0 18px;
  min-height: 78px;
}

.auth-captcha .g-recaptcha {
  transform-origin: left top;
}

.auth-card .error-message,
.auth-card .sent-message,
.auth-card .loading {
  display: none;
  text-align: left;
  padding: 11px 14px;
  margin-bottom: 14px;
  font-weight: 700;
  line-height: 1.55;
  border-radius: 4px;
}

.auth-card .error-message {
  color: #AF5F5F;
  background: #FDE8E8;
  border: 1px solid #FFA4A4;
}

.auth-card .sent-message {
  color: #5F7F4A;
  background: #EEFFE2;
  border: 1px solid #A2DA70;
}

.auth-card .loading {
  color: #5574AC;
  background: #E7F5FE;
  border: 1px solid #98D2F6;
}

.auth-card .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  margin: 0 10px -6px 0;
  border: 3px solid #5574AC;
  border-top-color: #E7F5FE;
  animation: animate-loading 1s linear infinite;
}

.auth-card .submitBtn button,
.auth-card .line-auth-btn {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
}

.auth-card .submitBtn button {
  border: 0;
  color: #fff;
  background: var(--color-primary);
  transition: .25s;
}

.auth-card .submitBtn button:disabled {
  cursor: wait;
  opacity: .82;
}

.auth-card .submitBtn button:hover {
  background: #20242A;
}

.auth-card .line-auth-btn {
  margin-top: 12px;
  color: #fff;
  background: #16a34a;
  border: 1px solid #138a3f;
  box-shadow: 0 10px 24px rgba(22, 163, 74, .18);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.auth-card .line-auth-btn:hover,
.auth-card .line-auth-btn:focus {
  color: #fff;
  background: #12813b;
  border-color: #0f7134;
  box-shadow: 0 14px 30px rgba(18, 129, 59, .28);
  transform: translateY(-1px);
}

.auth-card .line-auth-btn i {
  margin-right: 8px;
  font-size: 1.15rem;
}

.auth-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  color: #7d3b12;
  background: #fff4e8;
  border: 1px solid #f4d2af;
  border-radius: 6px;
  line-height: 1.6;
}

.line-profile {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px;
  background: #eef7f1;
  border: 1px solid #cde9d6;
  border-radius: 6px;
}

.line-profile img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
}

.line-profile b {
  color: #17202A;
}

.line-profile p {
  margin: 2px 0 0;
  color: #6c7a89;
  font-size: .9rem;
}

.auth-card span.error {
  display: block;
  margin-top: 6px;
  color: #d64242;
  font-size: .86rem;
}

@media (max-width: 991px) {
  .auth-section {
    padding: 116px 0 52px;
  }

  .auth-wrap {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .auth-intro {
    padding-top: 0;
    text-align: center;
  }

  .auth-intro p,
  .auth-benefits {
    margin-left: auto;
    margin-right: auto;
  }

  .auth-benefits li {
    justify-content: center;
  }

  .auth-card {
    padding: 26px 20px;
  }

  .auth-card:before {
    top: 20px;
    left: 20px;
  }
}

@media (max-width: 575px) {
  .auth-section .container {
    margin-top: 30px;
  }
  .auth-section {
    padding-top: 108px;
  }

  .auth-intro {
    text-align: left;
  }

  .auth-intro h1 {
    font-size: 1.85rem;
    margin-bottom: 12px;
  }

  .auth-intro p {
    font-size: .98rem;
    line-height: 1.75;
  }

  .auth-benefits {
    margin-top: 18px;
  }

  .auth-benefits li {
    justify-content: flex-start;
    align-items: flex-start;
    line-height: 1.55;
  }

  .auth-linkbar {
    flex-direction: column;
    gap: 8px;
  }

}
