/* ==========================================================================
   Funny's Snack — Kayıt / Giriş Sayfaları
   ========================================================================== */

.page-intro {
  background: var(--c-red);
  color: #000;
}

/* Layout
   ========================================================================== */

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  gap: 24px;
  min-height: 100vh;
  padding-top: 60px;
  padding-bottom: 40px;
}

/* Form logonun altından başlar */
.intro__content {
  padding-top: calc(var(--logo-top) + var(--logo-h) + 12px - 60px);
}

.intro__visual img {
  width: calc(100% + 80px);
  max-width: none;
}

/* Register form
   ========================================================================== */

.auth-form {
  max-width: 380px;
  margin-left: 69px;
}

.auth-form__title {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--c-white);
}

.auth-form__text {
  margin: -6px 0 18px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--c-white);
}

.auth-form__text strong {
  font-weight: 500;
  word-break: break-all;
}

.auth-success[hidden] {
  display: none;
}

.auth-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  margin-bottom: 14px;
  min-width: 0;
}

.field__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 12px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--c-white);
}

.field__input {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--c-white);
  color: #000;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  outline: none;
  transition: box-shadow .2s ease;
}

.field__input::placeholder {
  color: #B9B9B9;
}

.field__input:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .35);
}

.field__error {
  display: none;
  margin-top: 5px;
  padding-left: 20px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--c-white);
}

.field.is-invalid .field__input {
  box-shadow: 0 0 0 3px #000;
}

.field.is-invalid .field__error {
  display: block;
}


/* KVKK checkbox */

.field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: start;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--c-white);
}

.field--check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #000;
  cursor: pointer;
}

.field--check label {
  cursor: pointer;
}

.field--check a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.field--check .field__error {
  grid-column: 2;
  margin-top: 0;
  padding-left: 0;
}

.field--check.is-invalid input {
  outline: 3px solid #000;
  outline-offset: 1px;
}

/* Forgot password */

.auth-form__options {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.auth-form__link {
  font-size: 12px;
  font-weight: 400;
  color: var(--c-white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-form__link:hover {
  color: #000;
}

/* Actions */

.auth-form__actions .btn--text {
  color: var(--c-white);
}

.auth-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 18px;
}

/* Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .auth-form {
    margin-left: 0;
  }

  .intro__visual img {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 0;
    padding-bottom: 32px;
  }

  .intro__content {
    padding-top: calc(var(--logo-top) + var(--logo-h) + 12px);
  }

  .auth-form {
    max-width: 100%;
  }

  .intro__visual {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .auth-form__title {
    font-size: 20px;
  }

  .auth-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-form__actions .btn--light {
    width: 100%;
  }

  .auth-form__actions {
    justify-content: center;
  }
}
