/* Login / Signup / OTP pages. All rules are scoped under .rc-auth */
.rc-auth {
  --rc-teal: #04c1a7;
  --rc-teal-dark: #02a58f;
  --rc-navy: #001935;
  --rc-navy-2: #0a2a4f;
  --rc-text: #eef4fa;
  --rc-muted: #93a4b8;
  --rc-border: rgba(255, 255, 255, .12);
  --rc-field: rgba(255, 255, 255, .04);
  --rc-panel: #0b2544;
  --rc-bg: #001226;
  --rc-danger: #ff7b6b;
  background: radial-gradient(1100px 520px at 85% -10%, rgba(4, 193, 167, .16), transparent 60%),
              radial-gradient(900px 420px at -10% 110%, rgba(24, 111, 201, .14), transparent 60%),
              linear-gradient(180deg, var(--rc-navy) 0%, var(--rc-bg) 100%);
  padding: 64px 0 80px;
  font-family: var(--rc-font);
}

.rc-auth-card {
  display: flex;
  max-width: 980px;
  margin: 0 auto;
  background: var(--rc-panel);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(4, 193, 167, .05);
}

/* Brand panel */
.rc-auth-brand {
  position: relative;
  flex: 0 0 42%;
  padding: 48px 40px;
  color: #fff;
  background: linear-gradient(155deg, #00142b 0%, var(--rc-navy) 55%, #06304f 100%);
  border-right: 1px solid rgba(255, 255, 255, .06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.rc-auth-brand::before,
.rc-auth-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.rc-auth-brand::before {
  width: 320px; height: 320px;
  right: -140px; top: -120px;
  background: radial-gradient(circle, rgba(4, 193, 167, .35), transparent 70%);
}
.rc-auth-brand::after {
  width: 260px; height: 260px;
  left: -120px; bottom: -110px;
  border: 40px solid rgba(255, 255, 255, .04);
}
.rc-auth-brand > * { position: relative; z-index: 1; }

.rc-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(4, 193, 167, .15);
  color: #7ff0de;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.rc-auth-brand h2 {
  color: #fff;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.025em;
  margin: 22px 0 12px;
}
.rc-auth-brand h2 span { color: var(--rc-teal); }
.rc-auth-brand p.rc-lead {
  color: rgba(255, 255, 255, .72);
  font-size: 14.5px;
  line-height: 1.7;
  margin-bottom: 28px;
}
.rc-auth-points { list-style: none; padding: 0; margin: 0 0 32px; }
.rc-auth-points li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  line-height: 1.5;
}
.rc-auth-points .rc-ico {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  color: var(--rc-teal);
  font-size: 15px;
}
.rc-auth-points strong { display: block; color: #fff; font-weight: 600; font-size: 14.5px; }
.rc-auth-trust {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .6);
  font-size: 12.5px;
}
.rc-auth-trust i { color: var(--rc-teal); }

/* Form panel */
.rc-auth-form {
  flex: 1;
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rc-auth-form h3 {
  color: var(--rc-text);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.025em;
  margin: 0 0 6px;
}
.rc-auth-sub {
  color: var(--rc-muted);
  font-size: 14.5px;
  margin-bottom: 30px;
}
.rc-auth-sub b { color: var(--rc-text); font-weight: 600; }

.rc-field { margin-bottom: 20px; }
.rc-field > label {
  display: block;
  color: var(--rc-text);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 8px;
}
.rc-field > label .req { color: var(--rc-danger); margin-left: 2px; }

.rc-input-wrap { position: relative; }
.rc-input-wrap > .rc-input-ico {
  position: absolute;
  left: 16px;
  top: 26px; /* half the input height; error labels get appended inside the wrap */
  transform: translateY(-50%);
  color: #6f839b;
  font-size: 14px;
  pointer-events: none;
  z-index: 2;
}
.rc-auth .form-control {
  height: 52px;
  border: 1.5px solid var(--rc-border);
  border-radius: 12px;
  background: var(--rc-field);
  color: var(--rc-text);
  font-size: 15px;
  padding: 0 16px;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.rc-auth .rc-input-wrap > .rc-input-ico + .form-control { padding-left: 44px; }
.rc-auth .form-control::placeholder { color: #5f738b; }
.rc-auth .form-control:focus {
  border-color: var(--rc-teal);
  background: rgba(255, 255, 255, .07);
  color: var(--rc-text);
  box-shadow: 0 0 0 4px rgba(4, 193, 167, .14);
  outline: none;
}

/* intl-tel-input */
.rc-auth .intl-tel-input { width: 100%; display: block; }
.rc-auth .intl-tel-input .form-control { padding-left: 92px !important; width: 100% !important; }
.rc-auth .intl-tel-input.separate-dial-code .selected-flag {
  background: transparent !important;
  border-right: 1.5px solid var(--rc-border);
  padding-left: 16px;
  width: 80px !important;
  border-radius: 12px 0 0 12px;
}
.rc-auth .intl-tel-input.separate-dial-code .selected-dial-code {
  color: var(--rc-text);
  font-weight: 500;
  font-size: 15px;
}

/* Errors (jquery-validate + server) */
.rc-auth label.error,
.rc-auth .error {
  display: block;
  color: var(--rc-danger);
  font-size: 12.5px;
  font-weight: 500;
  margin: 6px 0 0;
}
.rc-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.rc-alert i { margin-top: 3px; }
.rc-alert-danger { background: rgba(231, 76, 60, .12); color: #ff9d90; border: 1px solid rgba(231, 76, 60, .25); }
.rc-alert-success { background: rgba(4, 193, 167, .12); color: #6ef0dc; border: 1px solid rgba(4, 193, 167, .25); }
.rc-alert-warning { background: rgba(255, 180, 60, .10); color: #ffcc7a; border: 1px solid rgba(255, 180, 60, .25); }
.rc-alert .close { margin-left: auto; font-size: 18px; line-height: 1; opacity: .5; }

/* Buttons */
.rc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rc-teal), var(--rc-teal-dark));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 10px 28px -10px rgba(4, 193, 167, .55);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.rc-btn:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 14px 28px -10px rgba(4, 193, 167, .8); color: #fff; }
.rc-btn:active { transform: translateY(0); }
.rc-btn:focus-visible { outline: 3px solid rgba(4, 193, 167, .35); outline-offset: 2px; }
.rc-btn i { transition: transform .15s ease; }
.rc-btn:hover i { transform: translateX(3px); }

.rc-link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--rc-teal);
  font-weight: 600;
  cursor: pointer;
}
.rc-link-btn:hover { text-decoration: underline; }

.rc-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #6f839b;
  font-size: 12.5px;
  margin: 28px 0 22px;
}
.rc-divider::before,
.rc-divider::after { content: ""; flex: 1; height: 1px; background: var(--rc-border); }

.rc-auth-switch {
  text-align: center;
  color: var(--rc-muted);
  font-size: 14.5px;
  margin: 0;
}
.rc-auth-switch a { color: var(--rc-teal); font-weight: 600; }
.rc-auth-switch a:hover { text-decoration: underline; }

.rc-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rc-muted);
  font-size: 12.5px;
  margin-top: 14px;
}
.rc-hint i { color: var(--rc-teal); }

/* Terms checkbox */
.rc-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--rc-border);
  border-radius: 12px;
  background: var(--rc-field);
  cursor: pointer;
  margin-bottom: 6px;
}
.rc-check input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--rc-teal);
  cursor: pointer;
}
.rc-check span { color: var(--rc-muted); font-size: 13.5px; line-height: 1.55; }
.rc-check a { color: var(--rc-teal); font-weight: 600; }

/* OTP */
.rc-otp-input {
  letter-spacing: .6em;
  text-align: center;
  font-size: 22px !important;
  font-weight: 600;
  padding-left: calc(16px + .6em) !important;
}
.rc-resend {
  text-align: center;
  color: var(--rc-muted);
  font-size: 13.5px;
  margin-top: 20px;
}
.rc-resend #timer { color: var(--rc-text); font-weight: 600; }
.rc-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rc-muted);
  font-size: 13.5px;
  margin-bottom: 22px;
}
.rc-back:hover { color: var(--rc-teal); }

.rc-steps { display: flex; gap: 8px; margin-bottom: 26px; }
.rc-steps span { height: 4px; flex: 1; border-radius: 4px; background: var(--rc-border); }
.rc-steps span.on { background: var(--rc-teal); }

@media (max-width: 991.98px) {
  .rc-auth-brand { flex-basis: 40%; padding: 40px 30px; }
  .rc-auth-form { padding: 44px 36px; }
}
@media (max-width: 767.98px) {
  .rc-auth { padding: 28px 0 48px; }
  .rc-auth-card { flex-direction: column; border-radius: 16px; margin: 0 4px; }
  .rc-auth-brand { padding: 28px 24px; }
  .rc-auth-brand h2 { font-size: 22px; margin: 14px 0 6px; }
  .rc-auth-brand p.rc-lead { margin-bottom: 0; font-size: 13.5px; }
  .rc-auth-points, .rc-auth-trust { display: none; }
  .rc-auth-form { padding: 32px 24px 36px; }
  .rc-auth-form h3 { font-size: 22px; }
}

/* Dark theme details */
.rc-auth .form-control:-webkit-autofill,
.rc-auth .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--rc-text);
  -webkit-box-shadow: 0 0 0 100px #13304f inset;
  caret-color: var(--rc-text);
}
.rc-auth .rc-check input[type="checkbox"] { color-scheme: dark; }
.rc-auth .rc-alert .close { color: inherit; text-shadow: none; }
@media (max-width: 767.98px) {
  .rc-auth-brand { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
}
