/* Account pages: login, register, forgot password, OTP. */
body.tx-page {
  margin: 0;
  background: #f4f7f6;
}

.auth-main,
.auth-main *,
.auth-main *::before,
.auth-main *::after {
  box-sizing: border-box;
}

.auth-main {
  --auth-teal: #0f766e;
  --auth-teal-dark: #115e59;
  --auth-orange: #f97316;
  --auth-ink: #0f172a;
  --auth-muted: #475569;
  --auth-line: #e2e8f0;
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 118, 110, 0.14), transparent 36%),
    radial-gradient(circle at 100% 20%, rgba(249, 115, 22, 0.12), transparent 28%),
    #f4f7f6;
  color: var(--auth-ink);
  font-family: "Inter", "Segoe UI", sans-serif;
  padding: 28px 16px 64px;
}

.auth-layout {
  width: min(1040px, 100%);
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
  gap: 0;
  background: #fff;
  border: 1px solid var(--auth-line);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.auth-aside {
  position: relative;
  min-height: 100%;
  padding: 36px 32px;
  border-radius: 28px 0 0 28px;
  color: #fff;
  background:
    linear-gradient(165deg, rgba(7, 22, 21, 0.78), rgba(15, 118, 110, 0.55)),
    url("https://images.unsplash.com/photo-1469854523086-cc02fe5d8800?auto=format&fit=crop&w=1400&q=80") center / cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
}

.auth-kicker {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fdba74;
}

.auth-aside h1 {
  margin: 0;
  max-width: 12ch;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
}

.auth-aside p {
  margin: 0;
  max-width: 34ch;
  color: #e7f5f3;
  font-size: 0.98rem;
}

.auth-points {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.auth-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
}

.auth-points li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f97316;
  flex: 0 0 auto;
}

.auth-card {
  min-width: 0;
  padding: 36px 34px 32px;
  border-radius: 0 28px 28px 0;
}

.auth-card h2 {
  margin: 0 0 6px;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.auth-lead {
  margin: 0 0 22px;
  color: var(--auth-muted);
}

.auth-lead a,
.auth-links a,
.auth-split a,
.auth-inline {
  color: var(--auth-teal);
  font-weight: 600;
  text-decoration: none;
}

.auth-lead a:hover,
.auth-links a:hover,
.auth-split a:hover,
.auth-inline:hover {
  color: var(--auth-orange);
}

.auth-form {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-field span,
.auth-check {
  font-size: 0.86rem;
  font-weight: 600;
  color: #134e4a;
}

.auth-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: #fff;
  color: var(--auth-ink);
  font: inherit;
  font-size: 0.98rem;
}

.auth-field input::placeholder {
  color: #94a3b8;
}

.auth-field input:focus {
  outline: 3px solid rgba(15, 118, 110, 0.16);
  border-color: var(--auth-teal);
}

.auth-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 500;
  color: var(--auth-muted);
}

.auth-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--auth-teal);
  flex: 0 0 auto;
}

.auth-submit {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 14px;
  background: var(--auth-teal);
  color: #fff;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-submit:hover,
.auth-submit:focus {
  background: var(--auth-teal-dark);
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.spinner-border {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -2px;
  animation: auth-spin 0.6s linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

.auth-links {
  margin: 4px 0 0;
  text-align: center;
  color: var(--auth-muted);
  font-size: 0.95rem;
}

.auth-card .alert {
  margin: 0 0 4px;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.92rem;
}

.auth-card .alert-success {
  background: #ccfbf1;
  color: #115e59;
}

.auth-card .alert-danger {
  background: #fee2e2;
  color: #991b1b;
}

.auth-card .alert-warning {
  background: #ffedd5;
  color: #9a3412;
}

.password-requirements {
  display: grid;
  gap: 4px;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--auth-line);
}

.requirement {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
}

.requirement i {
  font-style: normal;
  margin-right: 6px;
}

.requirement i::before {
  content: "•";
}

.requirement.valid {
  color: #0f766e;
}

.requirement.valid i::before {
  content: "✓";
}

.requirement.invalid {
  color: #b91c1c;
}

.requirement.invalid i::before {
  content: "×";
}

.auth-inline {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.otp-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.otp-row input {
  width: 100%;
  min-width: 0;
  height: 64px;
  padding: 0;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  background: #fff;
  text-align: center;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--auth-ink);
}

.otp-row input:focus {
  outline: 3px solid rgba(15, 118, 110, 0.16);
  border-color: var(--auth-teal);
}

.auth-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f0fdfa;
  color: #115e59;
  font-size: 0.92rem;
}

@media (min-width: 861px) {
  .auth-aside {
    position: sticky;
    top: 96px;
    min-height: calc(100vh - 140px);
  }
}

@media (max-width: 860px) {
  .auth-layout,
  .auth-aside,
  .auth-card {
    border-radius: 24px;
  }

  .auth-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .auth-aside {
    min-height: 240px;
    padding: 24px 22px;
  }

  .auth-card {
    background: #fff;
    border: 1px solid var(--auth-line);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    padding: 24px 18px 22px;
  }

  .auth-row {
    grid-template-columns: 1fr;
  }
}
