/* ============================================================
   AUTH (LOGIN / REGISTER) — login.css
   ============================================================ */

.auth-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--color-bg-cream);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.auth-layout {
  display: flex;
  min-height: 100vh;
}

/* ============================================================
   LEFT PANEL
   ============================================================ */
.auth-left {
  width: 46%;
  flex-shrink: 0;
  background: #1A1713;
  display: flex;
  flex-direction: column;
  padding: 56px 64px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  box-sizing: border-box;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -220px;
  left: -220px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(212, 82, 42, 0.12) 0%, rgba(212, 82, 42, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.auth-left::after {
  content: '';
  position: absolute;
  bottom: -220px;
  right: -180px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(212, 82, 42, 0.12) 0%, rgba(212, 82, 42, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.auth-left__logo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.auth-left__main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-left__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.auth-left__logo-text {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--color-white);
  line-height: 1;
}

.auth-left__content {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-top: 0;
}

.auth-left__heading {
  font-family: var(--font-primary);
  font-size: 48px;
  font-weight: 400;
  line-height: 52.8px;
  letter-spacing: -1px;
  color: #F5F0E8;
  margin: 0;
}

.auth-left__heading em {
  font-family: var(--font-primary);
  font-style: italic;
  font-weight: 400;
  color: #D4522A;
}

.auth-left__sub {
  font-family: var(--font-primary);
  font-size: 15px;
  color: #6B6660;
  line-height: 1.6;
  max-width: none;
  margin: 0;
}

.auth-left__products {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
}

.auth-product {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  box-sizing: border-box;
}

.auth-product__thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

.auth-product__thumb--blue   { background: linear-gradient(135deg, #B8CAEE 0%, #4A78BF 100%); }
.auth-product__thumb--orange { background: linear-gradient(135deg, #F5C4A5 0%, #D97040 100%); }
.auth-product__thumb--purple { background: linear-gradient(135deg, #D4C4F0 0%, #8A6EC8 100%); }

.auth-product__info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.auth-product__name {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: #C0B8A8;
}

.auth-product__sub {
  font-family: var(--font-primary);
  font-size: 11px;
  color: #5C5650;
}

/* ============================================================
   RIGHT PANEL
   ============================================================ */
.auth-right {
  flex: 1;
  background: var(--color-bg-cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 52px 48px;
  overflow-y: auto;
  position: relative;
}

/* ── Back link ── */
.auth-back {
  width: min(400px, 100%);
  max-width: 400px;
  align-self: center;
  margin-bottom: 40px;
}

.auth-back__btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: #8C8476;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.auth-back__btn:hover { color: #1A1713; }

.auth-back__btn svg,
.auth-back__btn img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.auth-back__arrow {
  transform: rotate(180deg);
  display: block;
}

/* ── Tabs ── */
.auth-tabs {
  display: flex;
  gap: 0;
  background: #F5F0E8;
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 40px;
  flex-shrink: 0;
  width: min(400px, 100%);
  max-width: 400px;
}

.auth-tab {
  flex: 1;
  padding: 10px 20px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: #8C8476;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.auth-tab--active {
  background: #FDFBF7;
  color: #1A1713;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 100px;
  box-shadow: 0px 2px 8px 0px rgba(26, 23, 19, 0.10);
}

/* ── Form wrapper ── */
.auth-form-wrap {
  width: min(400px, 100%);
  max-width: 400px;
}

/* --centered = visual centering for sent confirmation only */

/* ── Heading ── */
.auth-form__head {
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-form__title {
  font-family: var(--font-primary);
  font-size: 30px;
  font-weight: 400;
  color: #1A1713;
  line-height: 1.2;
  margin: 0;
}

.auth-form__title--lg {
  text-align: left;
}

.auth-form__title-em {
  font-style: italic;
  font-weight: 500;
  color: var(--color-accent);
}

.auth-form__emoji {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 30px;
  font-weight: 400;
  color: #D4522A;
}

.auth-form__desc {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: #8C8476;
  line-height: 1.55;
  margin: 0;
}

/* ── Google button ── */
.auth-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: auto;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid #D6CFC4;
  border-radius: 12px;
  background: #FAF8F2;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: #1A1713;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  margin-bottom: 0;
}

.auth-google-btn:hover {
  border-color: var(--color-brown-400);
  background: var(--color-bg-cream);
}

/* ── Divider ── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-top: 17px;
  margin-bottom: 0;
  color: #B5AFA5;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #DDD6CC;
}

/* ── Form fields top spacing ── */
#login-form,
#register-form,
#forgot-form {
  padding-top: 17px;
}

/* ── Fields ── */
.auth-field {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-field__label {
  display: block;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  color: #3D3830;
  margin: 0;
}

.auth-field__wrap {
  position: relative;
}

.auth-field__input {
  width: 100%;
  height: auto;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid #DDD6CC;
  border-radius: 12px;
  font-family: var(--font-primary);
  font-size: 14px;
  color: #1A1713;
  background: #FDFBF7;
  outline: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  box-sizing: border-box;
}

.auth-field__wrap .auth-field__input {
  padding-right: 48px;
}

.auth-field__input::placeholder { color: #B5AFA5; }
.auth-field__input:focus { border-color: var(--color-brown-400); }

/* Error state */
.auth-field__input--error {
  border-color: var(--color-accent) !important;
  background: rgba(212, 82, 42, 0.04) !important;
}

.auth-field__error {
  margin-top: 7px;
  font-size: 13px;
  color: var(--color-accent);
  display: none;
  line-height: 1.4;
}

.auth-field__error--visible { display: block; }

/* Inline error (inside foot-row) */
.auth-field__error--inline {
  margin-top: 0;
}

/* ── Password field spacing ── */
#lf-pass-wrap,
#rf-pass-wrap {
  padding-top: 10px;
}

.auth-field__foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
  padding-bottom: 17px;
  min-height: auto;
}

.auth-forgot {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  margin-left: auto;
}

.auth-forgot:hover { color: var(--color-accent-hover); }

.auth-field__restore {
  font-size: 13px;
  color: var(--color-accent);
  text-decoration: none;
}

.auth-field__restore:hover { color: var(--color-accent-hover); }

.auth-field__eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9B968D;
  display: flex;
  align-items: center;
  padding: 0;
  transition: color var(--transition-fast);
}

.auth-field__eye:hover { color: var(--color-brown-500); }

.auth-field__eye img,
.auth-field__eye svg {
  width: 16px;
  height: 16px;
}

#register-form .auth-submit {
  margin-top: 20px;
}

/* ── Submit ── */
.auth-submit {
  width: 100%;
  height: auto;
  min-height: 46px;
  padding: 14px 24px;
  margin-top: 0;
  border: none;
  border-radius: 12px;
  background: #271B15;
  color: #FDFBF7;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition-fast);
  box-shadow: 0px 0.54px 1.63px 0px rgba(212, 82, 42, 0.02);
}

.auth-submit:hover { background: var(--color-brown-800); }
.auth-submit:active { transform: scale(0.99); }

.auth-submit--outline {
  background: transparent;
  border: 1.5px solid var(--color-beige-300);
  color: var(--color-brown-900);
  margin-top: 24px;
}

.auth-submit--outline:hover {
  background: var(--color-beige-100);
  border-color: var(--color-brown-400);
}

/* ── Terms ── */
.auth-terms {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-brown-400);
  line-height: 1.55;
  text-align: center;
}

.auth-terms a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-terms a:hover { color: var(--color-accent-hover); }

/* ── Switch link ── */
.auth-switch {
  padding-top: 13px;
  margin-top: 0;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 400;
  color: #8C8476;
  text-align: center;
}

.auth-switch__link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 500;
  color: #D4522A;
  cursor: pointer;
}

.auth-switch__link:hover { color: var(--color-accent-hover); }

/* ============================================================
   FORGOT
   ============================================================ */
#view-forgot .auth-form__head {
  text-align: left;
  margin-bottom: 26px;
  max-width: 100%;
}

#view-forgot .auth-form__title {
  white-space: normal;
  overflow-wrap: break-word;
  max-width: 100%;
}

#forgot-form .auth-submit {
  margin-top: 16px;
}

#view-forgot .auth-switch {
  padding-top: 16px;
  margin-top: 0;
}

/* ============================================================
   EMAIL SENT
   ============================================================ */
.auth-sent {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-sent__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(212, 82, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  flex-shrink: 0;
}

.auth-sent__check {
  font-family: var(--font-primary);
  font-size: 36px;
  font-weight: 400;
  color: #D4522A;
  line-height: 1;
}

.auth-sent__title {
  margin-bottom: 12px;
  text-align: center;
}

.auth-sent__desc {
  text-align: center;
  max-width: 320px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .auth-left { display: none; }
  .auth-right { padding: 40px 24px; }
}

@media (max-width: 600px) {
  .auth-right {
    padding: 32px 20px;
    justify-content: flex-start;
  }

  .auth-back {
    width: 100%;
    max-width: 400px;
    margin-bottom: 48px;
  }

  .auth-back__btn {
    font-size: 14px;
    gap: 8px;
  }

  #view-forgot {
    width: 100%;
    max-width: 400px;
  }

  #view-forgot .auth-form__title {
    font-size: 30px;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: break-word;
  }

  #view-forgot .auth-form__desc {
    font-size: 14px;
    line-height: 1.55;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .auth-tabs { width: 100%; }
  .auth-tab { flex: 1; text-align: center; padding: 9px 16px; }
  .auth-form-wrap { max-width: 100%; }
}

@media (max-width: 380px) {
  #view-forgot .auth-form__title {
    font-size: 26px;
  }
}
