/* RecoPad auth — login mockup layout + shared form utilities */
:root {
  --pri: #e0252a;
  --pri-600: #c8151a;
  --pri-500: #ff2a2a;
  --ink-900: #1a1a1a;
  --ink-700: #2a2a2a;
  --ink-600: #4a4a4a;
  --ink-400: #6b6b6b;
  --ink-200: #e3e3e3;
  --ink-100: #f4f4f5;
  --card: #fff;
  --fg: #1a1a1a;
  --brd: #e3e3e3;
  --ok: #2a9d5e;
  --ok-bg: #ecfdf5;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --info-bg: #eef3fe;
  --info: #2563eb;
  --r-sm: 7px;
}

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

html, body.rp-auth {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: #fff;
  background: #050000;
  -webkit-font-smoothing: antialiased;
}

.rp-auth-page {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background:
    radial-gradient(ellipse 70% 80% at 15% 30%, #5e0808 0%, #2c0303 35%, #0a0000 65%, #000000 100%),
    #050000;
  overflow: hidden;
}

/* World map overlaps both columns */
.rp-auth-worldmap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-58%, -50%);
  width: 62%;
  height: 78%;
  pointer-events: none;
  z-index: 1;
}
.rp-auth-worldmap img,
.rp-auth-worldmap svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* ========== Left brand column ========== */
.rp-auth-brand {
  position: relative;
  z-index: 2;
  padding: 56px 60px 40px;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  color: #fff;
}

.rp-auth-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #891811;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(255, 40, 40, 0.4), inset 0 0 0 1px rgba(255,255,255,0.08);
  flex-shrink: 0;
  text-decoration: none;
}
.rp-auth-logo svg { width: 36px; height: 36px; display: block; }
.rp-auth-logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rp-auth-brand-inner {
  margin-top: auto;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 460px;
}

.rp-auth-brand h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: #fff;
}
.rp-auth-brand h1 .accent,
.rp-auth-brand h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ff3b3b 0%, #ff7a3b 50%, #ff2a2a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.rp-auth-brand-inner > p {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #d6d0d0;
  font-weight: 300;
  max-width: 340px;
}

.rp-auth-divider {
  width: 32px;
  height: 2px;
  background: #ff2a2a;
  margin-top: 16px;
  border-radius: 2px;
}

.rp-auth-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 440px;
}

.rp-auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.rp-auth-feature-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a0505 0%, #0d0202 100%);
  border: 1px solid rgba(255, 50, 50, 0.18);
  display: grid;
  place-items: center;
  line-height: 0;
  color: #ff3b3b;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 30, 30, 0.08);
}
.rp-auth-feature-ico svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: 0;
  overflow: visible;
}

.rp-auth-feature .rp-auth-feature-text { padding-top: 1px; }
.rp-auth-feature strong,
.rp-auth-feature h4 {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 3px;
}
.rp-auth-feature span,
.rp-auth-feature p {
  display: block;
  margin: 0;
  font-size: 12px;
  color: #b3adad;
  line-height: 1.5;
  font-weight: 300;
}

.rp-auth-spacer { display: none; }

.rp-auth-brand-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  color: #988f8f;
  font-weight: 300;
  flex-shrink: 0;
}
.rp-auth-brand-foot b,
.rp-auth-brand-foot a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.rp-auth-brand-foot a:hover { text-decoration: underline; }

/* ========== Right column / card ========== */
.rp-auth-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 0;
  overflow: auto;
}

.rp-auth-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 14px;
  padding: 26px 28px 22px;
  color: #1a1a1a;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.rp-auth-card--wide { max-width: 680px; }

.rp-auth-card > h2,
.rp-auth-card-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.rp-auth-card > h2 .accent,
.rp-auth-card-head h2 em,
.rp-auth-card-head h2 .accent {
  font-style: normal;
  color: #e0252a;
}

.rp-auth-card > .rp-auth-subtitle,
.rp-auth-card-head p {
  margin: 4px 0 0;
  font-size: 11.5px;
  color: #6b6b6b;
  font-weight: 400;
  line-height: 1.45;
}
.rp-auth-card > .rp-auth-subtitle::after,
.rp-auth-card-head p::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: #e0252a;
  margin-top: 8px;
}
.rp-auth-card-head { margin-bottom: 0; }
.rp-auth-card-head strong { color: #1a1a1a; font-weight: 600; }

.rp-auth-alert {
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 14px;
}
.rp-auth-alert ul { margin: 0; padding-left: 18px; }
.rp-auth-alert--error { background: var(--danger-bg); color: #991b1b; border: 1px solid #fecaca; }
.rp-auth-alert--info { background: var(--info-bg); color: #1d4ed8; border: 1px solid #bfdbfe; }
.rp-auth-alert--success { background: var(--ok-bg); color: #166534; border: 1px solid #bbf7d0; }

.rp-auth-form { display: grid; gap: 0; }
.rp-auth-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 600px) {
  .rp-auth-form-grid--2 { grid-template-columns: 1fr 1fr; }
}

.rp-auth-field { margin-top: 14px; }
.rp-auth-field label {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: #2a2a2a;
  margin-bottom: 5px;
}
.rp-auth-field label small {
  font-weight: 400;
  color: #6b6b6b;
}

.rp-auth-row,
.rp-auth-field .rp-auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
.rp-auth-row label,
.rp-auth-label-row label { margin-bottom: 0; }

.rp-auth-input-wrap,
.rp-auth-pass-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.rp-auth-input-ico,
.rp-auth-input-wrap .lead-icon {
  position: absolute;
  left: 11px;
  color: #b0b0b0;
  pointer-events: none;
  display: flex;
  width: auto;
  font-size: 13px;
}
.rp-auth-input-wrap .lead-icon svg { display: block; }

.rp-auth-input,
.rp-auth-select,
.rp-auth-input-wrap input,
.rp-auth-pass-wrap input {
  width: 100%;
  padding: 9px 34px 9px 32px;
  font-size: 12.5px;
  font-family: inherit;
  border: 1px solid #e3e3e3;
  border-radius: 7px;
  background: #fff;
  color: #1a1a1a;
  outline: none;
  height: auto;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.rp-auth-input:not(.rp-auth-input--icon):not(.rp-auth-input--otp) {
  padding: 9px 12px;
}
.rp-auth-pass-wrap .rp-auth-input {
  padding-right: 34px;
}
.rp-auth-input::placeholder,
.rp-auth-input-wrap input::placeholder { color: #b6b6b6; }
.rp-auth-input:focus,
.rp-auth-select:focus,
.rp-auth-input-wrap input:focus,
.rp-auth-pass-wrap input:focus {
  border-color: #e0252a;
  box-shadow: 0 0 0 3px rgba(224, 37, 42, 0.12);
}

.rp-auth-input--otp {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: .5rem;
  font-weight: 700;
  padding: 10px 12px;
}

.rp-auth-pass-toggle,
.rp-auth-input-wrap .toggle-eye {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #9a9a9a;
  padding: 4px;
  display: flex;
  width: auto;
}
.rp-auth-pass-toggle:hover,
.rp-auth-input-wrap .toggle-eye:hover { color: #e0252a; }

.rp-auth-check,
.rp-auth-remember {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: #4a4a4a;
  cursor: pointer;
  user-select: none;
}
.rp-auth-check input,
.rp-auth-remember input {
  accent-color: #e0252a;
  width: 13px;
  height: 13px;
}

.rp-auth-link,
.rp-auth-forgot {
  font-size: 10.5px;
  color: #e0252a;
  font-weight: 500;
  text-decoration: none;
}
.rp-auth-link:hover,
.rp-auth-forgot:hover { text-decoration: underline; }
.rp-auth-foot .rp-auth-link { font-size: 11.5px; }

.rp-auth-btn,
.rp-auth-login-btn {
  margin-top: 12px;
  width: 100%;
  padding: 10px 18px;
  height: auto;
  border: none;
  border-radius: 7px;
  background: linear-gradient(90deg, #c8151a 0%, #e0252a 50%, #c8151a 100%);
  background-size: 200% 100%;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-position 0.4s, transform 0.05s, opacity 0.15s;
  box-shadow: 0 5px 14px rgba(192, 21, 26, 0.32);
}
.rp-auth-btn:hover,
.rp-auth-login-btn:hover { background-position: 100% 0; }
.rp-auth-btn:active,
.rp-auth-login-btn:active { transform: translateY(1px); }
.rp-auth-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
.rp-auth-btn--login { justify-content: center; padding: 10px 18px; }
.rp-auth-btn--login span { flex: 0; padding-left: 0; text-align: center; }
.rp-auth-btn--secondary {
  background: #f4f4f5;
  color: #3f3f46;
  box-shadow: none;
}
.rp-auth-btn--secondary:hover { background: #e4e4e7; filter: none; }

.rp-auth-btn-link {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: #e0252a;
  cursor: pointer;
}
.rp-auth-btn-link:hover { text-decoration: underline; }

.rp-auth-or,
.rp-auth-divider-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 8px;
  color: #9a9a9a;
  font-size: 10.5px;
  font-weight: 500;
}
.rp-auth-or::before,
.rp-auth-or::after,
.rp-auth-divider-or::before,
.rp-auth-divider-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6e6e6;
}

.rp-auth-foot {
  margin-top: 0;
  text-align: center;
  font-size: 11.5px;
  color: #6b6b6b;
}

.rp-auth-trust {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #6b6b6b;
  font-size: 10.5px;
  text-align: center;
}
.rp-auth-trust i,
.rp-auth-trust svg { color: #2a9d5e; flex-shrink: 0; }

.rp-auth-copy {
  margin-top: 16px;
  text-align: center;
  font-size: 11.5px;
  color: #988f8f;
  font-weight: 300;
}
.rp-auth-copy a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.rp-auth-copy a:hover { text-decoration: underline; }

.rp-auth-terms {
  font-size: 11.5px;
  line-height: 1.5;
  color: #6b6b6b;
  margin: 12px 0 0;
}

.rp-auth-inline-form { display: inline; }

@media (max-width: 1100px) {
  html, body.rp-auth { overflow: auto; height: auto; }
  .rp-auth-page {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
  }
  .rp-auth-worldmap {
    width: 90%;
    height: 60%;
    opacity: 0.4;
    transform: translate(-50%, -50%);
  }
  .rp-auth-brand { padding: 24px; height: auto; }
  .rp-auth-main { padding: 24px; }
}

@media (max-width: 600px) {
  .rp-auth-card { max-width: 100%; padding: 22px 20px; }
  .rp-auth-brand h1 { font-size: 32px; }
  .rp-auth-brand-foot {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }
}
