/* RankedFeeds v20 — sign in, sign up and account recovery.
   Left: a focused form card. Right: the product itself, in RankedFeeds blue. */
body.rf-auth-page {
  --rf-blue: #0866ff;
  --rf-blue-hover: #0759e0;
  --rf-ink: #1c1e21;
  --rf-muted: #65676b;
  --rf-line: #ccd0d5;
  --rf-canvas: #f0f2f5;
  background: var(--rf-canvas);
  font-family: "Segoe UI Historic", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}
body.rf-auth-page .site-header {
  background: transparent;
}
.rf-auth {
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  gap: 32px;
  max-width: 1320px;
  margin: 20px auto 56px;
  padding: 0 24px;
  align-items: stretch;
}

/* Form ------------------------------------------------------------------ */
.rf-auth-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.rf-auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 16px 40px rgba(0, 0, 0, 0.08);
  padding: 36px 36px 30px;
  animation: rf-auth-rise 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.rf-auth-brand {
  display: inline-block;
  margin-bottom: 22px;
  border-radius: 12px;
}
.rf-auth-brand img {
  display: block;
}
.rf-auth-card h2 {
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--rf-ink);
  margin: 0;
}
.rf-auth-lead,
.rf-auth-card > p {
  color: var(--rf-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 8px 0 22px;
}
.rf-auth-card .field,
.rf-auth-card label.field {
  display: grid;
  gap: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--rf-ink);
  margin: 0 0 14px;
}
.rf-auth-card .field input,
.rf-auth-card input:not([type="checkbox"]):not([type="radio"]) {
  height: 48px;
  margin-top: 7px;
  padding: 0 14px;
  border: 1px solid var(--rf-line);
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  color: var(--rf-ink);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.rf-auth-card input::placeholder {
  color: #8a8d91;
}
.rf-auth-card input:hover {
  border-color: #b0b3b8;
}
.rf-auth-card input:focus {
  outline: none;
  border-color: var(--rf-blue);
  box-shadow: 0 0 0 3px rgba(8, 102, 255, 0.18);
}
.rf-auth-card .code-field {
  font-size: 26px !important;
  letter-spacing: 12px;
  text-align: center;
  height: 56px !important;
}
.rf-auth-card .field small {
  font-size: 13px;
  color: var(--rf-muted);
  margin-top: 6px;
}
.rf-pass-wrap {
  position: relative;
  display: block;
  margin-top: 7px;
}
.rf-auth-card .rf-pass-wrap input {
  width: 100%;
  margin-top: 0;
  padding-inline-end: 52px;
}
.rf-eye {
  position: absolute;
  inset-inline-end: 6px;
  top: 50%;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--rf-muted);
  transition: background-color 0.15s ease;
}
.rf-eye:hover {
  background: var(--rf-canvas);
}
.rf-eye svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rf-eye .eye-closed,
.rf-eye[aria-pressed="true"] .eye-open {
  display: none;
}
.rf-eye[aria-pressed="true"] .eye-closed {
  display: block;
}
.rf-auth-card .auth-links {
  display: flex;
  justify-content: flex-end;
  margin: 2px 0 18px;
  font-size: 14px;
}
.rf-auth-card .auth-links a,
.rf-auth-card .checkbox a,
.rf-auth-card .auth-foot a {
  color: var(--rf-blue);
  font-weight: 600;
  text-decoration: none;
}
.rf-auth-card .auth-links a:hover,
.rf-auth-card .checkbox a:hover,
.rf-auth-card .auth-foot a:hover {
  text-decoration: underline;
}
.rf-auth-card .checkbox {
  display: flex;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--rf-muted);
  margin: 6px 0 18px;
  align-items: flex-start;
}
.rf-auth-card .checkbox input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--rf-blue);
}
.rf-auth-card .btn {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  gap: 10px;
  transition:
    background-color 0.15s ease,
    transform 0.1s ease;
}
.rf-auth-card .btn:hover {
  transform: none;
}
.rf-auth-card .btn:active {
  transform: scale(0.98);
}
.rf-auth-card .btn-dark {
  background: var(--rf-blue);
  color: #fff;
}
.rf-auth-card .btn-dark:hover {
  background: var(--rf-blue-hover);
}
.rf-auth-card .btn-outline {
  border: 1px solid var(--rf-line);
  background: #fff;
  color: var(--rf-ink);
}
.rf-auth-card .btn-outline:hover {
  background: var(--rf-canvas);
}
.rf-auth-card form + form {
  margin-top: 10px;
}
.rf-btn-spin {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  animation: rf-auth-spin 0.7s linear infinite;
}
form.is-busy .rf-btn-spin {
  display: inline-block;
}
form.is-busy .rf-submit {
  pointer-events: none;
  opacity: 0.85;
}
.rf-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 14px;
  color: var(--rf-muted);
  font-size: 13px;
}
.rf-auth-divider::before,
.rf-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #dadde1;
}
.rf-auth-card .error-box,
.rf-auth-card .success-box {
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 16px;
  padding: 12px 14px;
}
.rf-auth-card .error-box {
  color: #b4232f;
  background: #fdecee;
  border: 1px solid #f6c5cb;
  animation: rf-auth-shake 0.38s ease;
}
.rf-auth-card .success-box {
  color: #1d5a2f;
  background: #e9f6ec;
  border: 1px solid #bfe3c8;
}
.rf-auth-card .auth-foot {
  font-size: 14px !important;
  color: var(--rf-muted);
  text-align: center;
  margin: 18px 0 0 !important;
}
.rf-auth-legal {
  text-align: center;
  color: #8a8d91;
  font-size: 12px;
  margin: 16px 0 0;
}

/* Product showcase ---------------------------------------------------------- */
.rf-auth-showcase {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 660px;
  display: flex;
  flex-direction: column;
  padding-block: 48px 0;
  padding-inline: 48px 0;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(120, 180, 255, 0.55) 0%, rgba(120, 180, 255, 0) 60%),
    linear-gradient(160deg, #0866ff 0%, #0057e0 45%, #003fae 100%);
  isolation: isolate;
}
.rf-auth-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 55%);
  z-index: -1;
}
.rf-auth-copy {
  padding-inline-end: 48px;
  max-width: 640px;
  animation: rf-auth-rise 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s both;
}
.rf-auth-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 2.7vw, 42px);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.rf-auth-copy p {
  margin: 14px 0 20px;
  max-width: 540px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.5;
}
.rf-auth-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.rf-auth-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
}
.rf-auth-points svg {
  width: 22px;
  height: 22px;
  flex: none;
  padding: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rf-auth-stage {
  position: relative;
  flex: 1;
  min-height: 330px;
  margin-top: 34px;
}
.rf-shot {
  position: absolute;
  display: block;
  max-width: none;
  border-radius: 12px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 28px 60px rgba(0, 18, 64, 0.38);
}
.rf-shot-main {
  inset-inline-start: 0;
  top: 0;
  width: 140%;
  height: auto;
  border-radius: 0;
  border-start-start-radius: 12px;
  animation: rf-auth-rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}
.rf-shot-float {
  inset-inline-end: 7%;
  top: 9%;
  width: 31%;
  min-width: 180px;
  max-width: 300px;
  height: auto;
  border-radius: 14px;
  animation:
    rf-auth-pop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.55s both,
    rf-auth-float 7s ease-in-out 1.3s infinite;
}
@keyframes rf-auth-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}
@keyframes rf-auth-pop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
}
@keyframes rf-auth-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes rf-auth-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes rf-auth-shake {
  20%,
  60% {
    transform: translateX(-4px);
  }
  40%,
  80% {
    transform: translateX(4px);
  }
}

/* Responsive ---------------------------------------------------------------- */
@media (max-width: 920px) {
  .rf-auth {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    gap: 20px;
    margin-top: 8px;
  }
  .rf-auth-showcase {
    min-height: 520px;
    padding-block: 32px 0;
    padding-inline: 28px 0;
  }
  .rf-auth-copy {
    padding-inline-end: 28px;
  }
  .rf-auth-copy h1 {
    font-size: 28px;
  }
  .rf-auth-copy p {
    font-size: 15px;
  }
  .rf-shot-main {
    width: 150%;
  }
  .rf-shot-float {
    width: 40%;
    top: 12%;
    inset-inline-end: 6%;
  }
}
@media (max-width: 520px) {
  .rf-auth {
    padding: 0 12px;
  }
  .rf-auth-card {
    padding: 26px 20px 22px;
    border-radius: 14px;
  }
  .rf-auth-card h2 {
    font-size: 24px;
  }
  .rf-auth-showcase {
    border-radius: 18px;
    min-height: 470px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rf-auth-card,
  .rf-auth-copy,
  .rf-shot,
  .rf-auth-card .error-box {
    animation: none !important;
  }
}

[dir="rtl"] body.rf-auth-page {
  font-family: "Segoe UI", system-ui, -apple-system, Tahoma, "Noto Sans Arabic", Arial, sans-serif;
}
[dir="rtl"] .rf-auth-copy h1,
[dir="rtl"] .rf-auth-card h2 {
  letter-spacing: 0;
}
/* v20: shown when the owner pauses new signups. */
.rf-auth-closed {
  display: grid;
  gap: 8px;
  margin: 4px 0 18px;
  padding: 16px;
  border-radius: 12px;
  background: #fff7e8;
  border: 1px solid #f3d9a6;
  color: #5c3b00;
}
.rf-auth-closed strong { font-size: 16px; }
.rf-auth-closed p { margin: 0; font-size: 14px; line-height: 1.55; }
.rf-auth-closed .text-link { font-weight: 600; color: #0759cf; }

/* v21: Cloudflare Turnstile security check */
.rf-turnstile {
  min-height: 65px;
  margin: 2px 0 6px;
}
