/* AjumaPro Books — login / signup */

:root {
  --bk-ink: #12251f;
  --bk-forest: #16352e;
  --bk-forest-deep: #0e221d;
  --bk-accent: #2ca01c;
  --bk-accent-dark: #1f7a14;
  --bk-mint: #8ee07f;
  --bk-paper: #eef6ee;
  --bk-card: #ffffff;
  --bk-muted: #4e5f58;
  --bk-hint: #6b7c74;
  --bk-line: #d5e5d1;
  --bk-display: "Sora", "Segoe UI", sans-serif;
  --bk-sans: "DM Sans", "Segoe UI", sans-serif;
  --bk-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.books-auth {
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--bk-ink);
  background: var(--bk-paper);
  font-family: var(--bk-sans);
  -webkit-font-smoothing: antialiased;
}

.books-auth a {
  color: var(--bk-accent-dark);
}

.books-auth h1,
.books-auth h2 {
  font-family: var(--bk-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.books-auth__split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.books-auth__brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  color: #f4faf3;
  background:
    radial-gradient(ellipse 70% 55% at 100% -10%, rgba(44, 160, 28, 0.28), transparent 58%),
    radial-gradient(ellipse 50% 40% at -10% 110%, rgba(44, 160, 28, 0.18), transparent 55%),
    linear-gradient(165deg, #1c4037 0%, var(--bk-forest) 46%, var(--bk-forest-deep) 100%);
}

.books-auth__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
}

.books-auth__brand > * {
  position: relative;
  z-index: 1;
}

a.books-auth__logo,
.books-auth__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: fit-content;
  color: #fff;
  text-decoration: none;
  font-family: var(--bk-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

a.books-auth__logo:hover,
.books-auth__logo:hover {
  color: #fff;
}

.books-auth__logo-icon {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: var(--bk-accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(14, 34, 29, 0.28);
}

.books-auth__brand-copy {
  max-width: 28rem;
  animation: books-auth-rise 0.7s var(--bk-ease) both;
}

.books-auth__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bk-mint);
}

.books-auth__headline {
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  line-height: 1.12;
  color: #fff;
  margin: 0 0 0.85rem;
}

.books-auth__headline span {
  color: var(--bk-mint);
}

.books-auth__tagline {
  margin: 0 0 1.5rem;
  max-width: 26rem;
  color: #d7e8d4;
  font-size: 1.02rem;
  line-height: 1.6;
}

.books-auth__features {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.books-auth__features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #e8f6e6;
}

.books-auth__check {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(44, 160, 28, 0.22);
  color: var(--bk-mint);
  font-size: 0.7rem;
}

.books-auth__preview {
  max-width: 22rem;
  background: #fff;
  color: var(--bk-ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(8, 22, 18, 0.28);
}

.books-auth__preview-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.9rem;
  background: var(--bk-forest-deep);
  color: #e8f6e6;
  font-size: 0.75rem;
  font-weight: 600;
}

.books-auth__preview-bar span {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #7ad36c;
}

.books-auth__preview-bar em {
  margin-left: auto;
  font-style: normal;
  opacity: 0.85;
}

.books-auth__preview-body {
  padding: 0.7rem 0.95rem 0.85rem;
}

.books-auth__preview-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid #e7efe5;
  font-size: 0.84rem;
  color: var(--bk-muted);
}

.books-auth__preview-row strong {
  color: var(--bk-ink);
  font-weight: 700;
}

.books-auth__preview-row.is-total {
  border-bottom: 0;
  color: var(--bk-accent-dark);
  font-weight: 700;
  padding-top: 0.55rem;
}

.books-auth__foot {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(232, 246, 230, 0.62);
}

.books-auth__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(44, 160, 28, 0.08), transparent 55%),
    var(--bk-paper);
  animation: books-auth-rise 0.7s var(--bk-ease) 0.08s both;
}

.books-auth__card {
  width: 100%;
  max-width: 26.5rem;
  margin: 0 auto;
  padding: 1.85rem 1.75rem 1.6rem;
  background: var(--bk-card);
  border: 1px solid var(--bk-line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(18, 37, 31, 0.08);
}

.books-auth--signup .books-auth__card {
  max-width: 30rem;
}

.books-auth__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.35rem;
  color: var(--bk-muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.books-auth__back:hover {
  color: var(--bk-ink);
}

.books-auth__kicker {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bk-accent-dark);
}

.books-auth__title {
  font-size: clamp(1.55rem, 2.4vw, 1.9rem);
  line-height: 1.18;
  color: var(--bk-ink);
  margin: 0 0 0.4rem;
}

.books-auth__subtitle {
  margin: 0 0 1.15rem;
  color: var(--bk-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.books-auth__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
}

.books-auth__trust li {
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: #e8f6e6;
  color: #1a3c34;
  font-size: 0.75rem;
  font-weight: 700;
}

.books-auth__alert {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.88rem;
  line-height: 1.4;
}

.books-auth__field {
  margin-bottom: 1rem;
}

.books-auth__field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: #2c3d36;
}

.books-auth__control {
  position: relative;
}

.books-auth__control > i {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  transform: translateY(-50%);
  color: #7a8c84;
  font-size: 0.82rem;
  pointer-events: none;
}

.books-auth__control input {
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 2.6rem 0.65rem 2.45rem;
  border: 1.5px solid #cfe3cb;
  border-radius: 10px;
  background: #fff;
  color: var(--bk-ink);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.books-auth__control input:not(:last-child) {
  padding-right: 2.7rem;
}

.books-auth__control input::placeholder {
  color: #8aa198;
}

.books-auth__control input:hover {
  border-color: #b7d7b1;
}

.books-auth__control input:focus {
  outline: none;
  border-color: var(--bk-accent);
  box-shadow: 0 0 0 3px rgba(44, 160, 28, 0.18);
}

.books-auth__control input:-webkit-autofill,
.books-auth__control input:-webkit-autofill:hover,
.books-auth__control input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--bk-ink);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  caret-color: var(--bk-ink);
  border-color: var(--bk-accent);
}

.books-auth__eye {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5c6b64;
  cursor: pointer;
}

.books-auth__eye:hover,
.books-auth__eye:focus-visible {
  color: var(--bk-ink);
  background: #f0f7ee;
  outline: none;
}

.books-auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.95rem;
  margin-top: 0.35rem;
  padding: 0.75rem 1.2rem;
  border: 0;
  border-radius: 10px;
  background: var(--bk-accent);
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(44, 160, 28, 0.22);
  transition: background 0.18s ease, transform 0.18s var(--bk-ease);
}

.books-auth__submit:hover {
  background: var(--bk-accent-dark);
  transform: translateY(-1px);
}

.books-auth__submit:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.books-auth__links {
  margin: 1.25rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--bk-line);
  text-align: center;
  color: var(--bk-muted);
  font-size: 0.9rem;
}

.books-auth__links p {
  margin: 0;
}

.books-auth__links a {
  font-weight: 700;
  text-decoration: none;
}

.books-auth__links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.books-auth__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  color: var(--bk-hint);
  font-size: 0.78rem;
  font-weight: 600;
}

.books-auth__secure i {
  color: var(--bk-accent-dark);
}

@keyframes books-auth-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .books-auth__brand-copy,
  .books-auth__panel,
  .books-auth__submit {
    animation: none;
    transition: none;
  }
}

@media (max-width: 960px) {
  .books-auth__split {
    grid-template-columns: 1fr;
  }

  .books-auth__brand {
    min-height: auto;
    gap: 1.25rem;
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .books-auth__preview,
  .books-auth__foot {
    display: none;
  }

  .books-auth__features li:nth-child(n + 3) {
    display: none;
  }

  .books-auth__headline {
    font-size: 1.55rem;
  }

  .books-auth__tagline {
    margin-bottom: 1rem;
  }

  .books-auth__panel {
    padding: 1.35rem 1.1rem 2.25rem;
  }

  .books-auth__card {
    padding: 1.4rem 1.2rem 1.3rem;
    box-shadow: 0 8px 24px rgba(18, 37, 31, 0.06);
  }
}
