/*
 * rnLogin.css — Auth panel styles for RupitrN
 *
 * Usage: import this in your existing CSS entry, or link it in the HTML.
 * All classes are namespaced with `rn-auth-` and `rn-` to avoid collisions
 * with your existing rnButton / rnProgressBar styles.
 *
 * The panel is designed to sit inside a modal/overlay container you control.
 * It does not add its own overlay — mount it in whatever container you pass
 * to auth.renderLoginForm(container).
 */

/* ── Panel shell ──────────────────────────────────────────────────────────── */
.rn-auth-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 320px;
  padding: 28px 24px 20px;
  background: #1a1d23;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #e2e8f0;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.rn-auth-header {
  margin-bottom: 4px;
}
.rn-auth-title {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #f7fafc;
}
.rn-auth-sub {
  margin: 0;
  font-size: 13px;
  color: #718096;
}

/* ── Tabs ─────────────────────────────────────────────────────────────────── */
.rn-auth-tabs {
  display: flex;
  gap: 0;
  background: #12151a;
  border-radius: 8px;
  padding: 3px;
  margin-bottom: 2px;
}
.rn-tab {
  flex: 1;
  padding: 7px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #718096;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.rn-tab.rn-tab--active {
  background: #2d3748;
  color: #e2e8f0;
}
.rn-tab:hover:not(.rn-tab--active) {
  color: #a0aec0;
}

/* ── Tab panels ───────────────────────────────────────────────────────────── */
.rn-tab-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rn-tab-panel--hidden {
  display: none;
}

/* ── Inputs ───────────────────────────────────────────────────────────────── */
.rn-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 13px;
  background: #12151a;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}
.rn-input::placeholder {
  color: #4a5568;
}
.rn-input:focus {
  border-color: rgba(99, 179, 237, 0.5);
  box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.08);
}

/* OTP digit input — larger, centered, spaced */
.rn-otp-digits {
  font-size: 24px;
  letter-spacing: 12px;
  text-align: center;
  padding: 12px 16px;
}

/* ── Channel radio row ───────────────────────────────────────────────────── */
.rn-channel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rn-channel-label {
  font-size: 12px;
  color: #718096;
  flex-basis: 100%;
}
.rn-radio {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #a0aec0;
  cursor: pointer;
  user-select: none;
}
.rn-radio input[type="radio"] {
  accent-color: #63b3ed;
  cursor: pointer;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.rn-btn-primary {
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #3182ce;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.rn-btn-primary:hover:not(:disabled) {
  background: #2b6cb0;
}
.rn-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rn-btn-ghost {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  background: transparent;
  color: #a0aec0;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.rn-btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #e2e8f0;
}

.rn-btn-link {
  background: none;
  border: none;
  padding: 0;
  color: #63b3ed;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s, color 0.15s;
}
.rn-btn-link:hover {
  color: #90cdf4;
  text-decoration-color: currentColor;
}

/* ── Status message ───────────────────────────────────────────────────────── */
.rn-auth-msg {
  margin: 0;
  font-size: 12px;
  min-height: 16px;
  line-height: 1.4;
}
.rn-auth-msg--error { color: #fc8181; }
.rn-auth-msg--ok    { color: #68d391; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.rn-auth-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #718096;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4px;
}

/* ── Profile dropdown items ───────────────────────────────────────────────── */
.rn-dd-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}