/* ============================================================
   GTCARD – Auth Pages (Login / Register)
   File: css/auth.css
   Purpose: Auth hero, form card, inputs, social buttons
   Shared chrome stays in style.css
   ============================================================ */

.auth-hero {
  padding: 28px 0 8px;
}

.auth-hero__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 40px 48px;
  align-items: center;
  background: linear-gradient(130deg, var(--green-900) 0%, var(--green-800) 42%, var(--green-600) 100%);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  overflow: hidden;
}

.auth-hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.auth-hero__copy {
  position: relative;
  z-index: 1;
  color: #fff;
  max-width: 520px;
}

.auth-hero__copy h1 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.auth-hero__points {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.auth-hero__points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.45;
}

.auth-hero__points svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green-300);
}

.auth-hero__support {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}

.auth-hero__support a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----------------------------------------------------------
   Form card
   ---------------------------------------------------------- */
.auth-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 18px;
  padding: 22px 24px 24px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.auth-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.auth-card__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4b5563;
}

.auth-card__back:hover {
  color: var(--green-700);
}

.auth-card__mode {
  font-size: 0.88rem;
  font-weight: 600;
  color: #6b7280;
}

.auth-card__mode.is-active {
  color: var(--green-600);
  font-weight: 700;
}

.auth-card__title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.auth-card__subtitle {
  font-size: 0.88rem;
  color: #9ca3af;
  margin-bottom: 20px;
}

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

.auth-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 6px;
}

.auth-field__control {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  min-height: 44px;
  padding: 0 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-field__control:focus-within {
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(27, 122, 69, 0.12);
}

.auth-field.is-invalid .auth-field__control {
  border-color: #fca5a5;
}

.auth-field__control input {
  flex: 1;
  min-width: 0;
  height: 42px;
  font-size: 0.9rem;
  color: #111;
}

.auth-field__control input::placeholder {
  color: #c4c9d1;
}

.auth-field__icon {
  color: #9ca3af;
  flex-shrink: 0;
  margin-left: 8px;
  font-weight: 700;
  font-size: 0.95rem;
}

.auth-field__dial {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-right: 10px;
  padding-right: 10px;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.auth-field__dial select {
  font-size: 0.85rem;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  max-width: 108px;
}

.auth-field__forgot {
  display: block;
  text-align: right;
  margin-top: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green-600);
}

.auth-field__forgot:hover {
  color: var(--green-700);
}

.auth-card__error {
  min-height: 1.2em;
  margin: 2px 0 10px;
  font-size: 0.8rem;
  color: #dc2626;
}

.auth-card__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  border-radius: 50px;
  background: var(--green-800);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 4px;
  transition: background var(--transition), transform var(--transition);
}

.auth-card__submit:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

.auth-card__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: #9ca3af;
  font-size: 0.78rem;
}

.auth-card__divider::before,
.auth-card__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ececec;
}

.auth-social {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.auth-social__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ececec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: box-shadow var(--transition), transform var(--transition);
}

.auth-social__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.auth-card__switch {
  margin-top: 18px;
  text-align: center;
  font-size: 0.84rem;
  color: #6b7280;
}

.auth-card__switch a {
  color: #e85d04;
  font-weight: 700;
}

.auth-card__switch a:hover {
  text-decoration: underline;
}

.auth-hero + .best-sellers {
  padding-top: 28px;
}

@media (max-width: 900px) {
  .auth-hero__panel {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 24px;
  }

  .auth-card {
    order: -1;
  }
}
