/* =====================================================================
   FILE PATH: app/static/mapcare/auth-recovery-device.css
   PURPOSE  : Stylesheet for Mobile Auth, Account Recovery, Device Trust & QR Scanner (SCR-030 to SCR-040, SCR-091, SCR-092)
   TOKENS   : Primary: #0e2b5d, Accent: #0083ff, Surface: #edf8ff, Radius: 22px
   RULES    : Fluid 360px-430px Portrait 100dvh, 100% Zero-Emoji Parity
   ===================================================================== */

:root {
  --mc-primary: #0e2b5d;
  --mc-accent: #0083ff;
  --mc-surface: #edf8ff;
  --mc-border: #e2e8f0;
  --mc-radius-card: 22px;
  --mc-radius-btn: 14px;
  --mc-radius-pill: 9999px;
  --mc-text-main: #0f172a;
  --mc-text-muted: #64748b;
  --mc-success: #10b981;
  --mc-danger: #ef4444;
}

body.mc-auth-mobile-body {
  margin: 0;
  padding: 0;
  background: #f1f5f9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--mc-text-main);
  min-height: 100vh;
}

.mc-mobile-screen {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.mc-mobile-nav {
  height: 56px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--mc-border);
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 50;
}

.mc-back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-text-main);
  text-decoration: none;
}

.mc-nav-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--mc-primary);
  margin: 0;
}

.mc-mobile-content {
  flex: 1;
  padding: 20px 16px;
}

.mc-screen-hero {
  margin-bottom: 24px;
}

.mc-screen-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mc-accent);
  display: block;
  margin-bottom: 4px;
}

.mc-screen-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--mc-primary);
  margin: 0 0 6px;
}

.mc-screen-subtitle {
  font-size: 13px;
  color: var(--mc-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Card Stack */
.mc-action-card {
  background: #ffffff;
  border: 1.5px solid var(--mc-border);
  border-radius: var(--mc-radius-card);
  padding: 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.mc-action-card:hover {
  border-color: var(--mc-accent);
  background: var(--mc-surface);
}

.mc-action-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mc-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--mc-surface);
  color: var(--mc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mc-action-text h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--mc-primary);
  margin: 0 0 3px;
}

.mc-action-text p {
  font-size: 12px;
  color: var(--mc-text-muted);
  margin: 0;
}

/* Steps Indicator for Recovery Hub (SCR-033 to SCR-038) */
.mc-recovery-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  position: relative;
}

.mc-step-bullet {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: #e2e8f0;
  color: var(--mc-text-muted);
  z-index: 2;
}

.mc-step-bullet.active {
  background: var(--mc-accent);
  color: #ffffff;
}

.mc-step-bullet.completed {
  background: var(--mc-primary);
  color: #ffffff;
}

.mc-step-connector {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

/* Device Management Cards (SCR-040) */
.mc-device-card {
  border: 1.5px solid var(--mc-border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  background: #ffffff;
}

.mc-device-card.current {
  border-color: var(--mc-accent);
  background: #f0f9ff;
}

.mc-device-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.mc-device-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--mc-primary);
}

.mc-badge-trusted {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--mc-radius-pill);
  background: #dcfce7;
  color: #15803d;
  text-transform: uppercase;
}

.mc-device-meta {
  font-size: 11px;
  color: var(--mc-text-muted);
  line-height: 1.5;
}

/* QR Scanner Viewfinder (SCR-092) */
.mc-scanner-viewport {
  background: #000000;
  height: 380px;
  border-radius: var(--mc-radius-card);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.mc-scanner-box {
  width: 220px;
  height: 220px;
  border: 2px solid #ffffff;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
}

.mc-scanner-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #0083ff;
  box-shadow: 0 0 8px #0083ff;
  animation: mcLaser 2.2s infinite ease-in-out;
}

@keyframes mcLaser {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}


/* =========================================================================
   FIGMA 1:1 PARITY OVERRIDES — BATCH 3A (SCR-030 TO SCR-040)
   ========================================================================= */
body.mc-auth-mobile-body {
  background: #f8fafc;
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1e293b;
}
.mc-mobile-screen {
  max-width: 390px;
  min-height: 844px;
  margin: 0 auto;
  background: #ffffff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.mc-mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}
.mc-nav-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.mc-help-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 99px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0076ff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.mc-mobile-content {
  padding: 14px 16px 24px;
  flex: 1;
}
.mc-b3-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.mc-b3-hero-text {
  flex: 1;
}
.mc-b3-h1 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 6px;
}
.mc-b3-blue {
  color: #0076ff;
}
.mc-b3-sub {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}
.mc-b3-hero-img {
  height: auto;
  flex-shrink: 0;
  display: block;
}
.mc-b3-field-group {
  margin-bottom: 12px;
}
.mc-b3-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 5px;
}
.mc-b3-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 12px;
  border: 1.2px solid #93c5fd;
  border-radius: 10px;
  background: #ffffff;
  box-sizing: border-box;
}
.mc-b3-in-icon {
  font-size: 13px;
  color: #0076ff;
  flex-shrink: 0;
}
.mc-b3-input {
  border: none !important;
  outline: none !important;
  background: transparent !important;
  flex: 1;
  font-size: 13px !important;
  color: #1e293b !important;
  height: 100% !important;
  padding: 0 !important;
}
.mc-b3-in-right {
  font-size: 13px;
  color: #64748b;
}
.mc-b3-btn-primary {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  background: #0076ff;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-sizing: border-box;
}
.mc-b3-btn-outline {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.2px solid #cbd5e1;
  color: #475569;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-sizing: border-box;
}
.mc-b3-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 14px 0;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
}
.mc-b3-or-divider::before, .mc-b3-or-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e2e8f0;
}
.mc-b3-or-divider span {
  padding: 0 10px;
}
.mc-b3-info-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  margin: 12px 0;
}
.mc-b3-info-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0076ff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.mc-b3-info-banner strong {
  display: block;
  font-size: 12px;
  color: #0076ff;
}
.mc-b3-info-banner p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #475569;
}
.mc-b3-sec-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 14px 0 8px;
}
.mc-b3-card-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mc-b3-list-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
}
.mc-b3-lc-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eff6ff;
  color: #0076ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.mc-b3-lc-body {
  flex: 1;
  min-width: 0;
}
.mc-b3-lc-body strong {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}
.mc-b3-lc-body p {
  margin: 2px 0 0;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}
.mc-b3-lc-meta {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
}
.mc-b3-lc-dots {
  color: #94a3b8;
  font-weight: 700;
}
.mc-b3-urgent-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  margin-top: 12px;
}
.mc-b3-urgent-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mc-b3-urgent-left strong {
  display: block;
  font-size: 12px;
  color: #be123c;
}
.mc-b3-urgent-left p {
  margin: 2px 0 0;
  font-size: 10px;
  color: #e11d48;
}
.mc-b3-urgent-btn {
  padding: 6px 10px;
  border-radius: 99px;
  border: 1px solid #f43f5e;
  background: #ffffff;
  color: #e11d48;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}
.mc-b3-icon-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
}
.mc-b3-ig-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  color: #334155;
}
.mc-b3-ig-item span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: #0076ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.mc-b3-ig-item small {
  font-size: 10px;
  font-weight: 600;
}
.mc-b3-faq-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}
.mc-b3-box-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mc-b3-issue-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
  text-decoration: none;
  color: #1e293b;
  font-size: 11px;
  font-weight: 600;
}
.mc-b3-ib-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eff6ff;
  color: #0076ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.mc-b3-badge-green {
  padding: 4px 8px;
  border-radius: 99px;
  background: #dcfce7;
  color: #15803d;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.mc-b3-pill-outline {
  padding: 5px 10px;
  border-radius: 99px;
  border: 1px solid #93c5fd;
  background: #eff6ff;
  color: #0076ff;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.mc-b3-pill-muted {
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
}
.mc-b3-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 12px;
}
.mc-b3-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.mc-b3-step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #cbd5e1;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mc-b3-step.active .mc-b3-step-circle {
  background: #0076ff;
}
.mc-b3-step span {
  font-size: 9px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}
.mc-b3-step.active span {
  color: #0076ff;
}
.mc-b3-step-line {
  flex: 1;
  height: 2px;
  background: #cbd5e1;
  margin: 0 4px 14px;
}
.mc-b3-step-line.active {
  background: #0076ff;
}
.mc-b3-toggle-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.mc-b3-toggle-btn {
  height: 40px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}
.mc-b3-toggle-btn.active {
  border-color: #0076ff;
  background: #eff6ff;
  color: #0076ff;
}
.mc-b3-check-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 11.5px;
  color: #334155;
  margin-bottom: 14px;
}
.mc-b3-otp-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 10px 0;
}
.mc-b3-otp-box {
  width: 100%;
  height: 46px;
  border: 1.2px solid #cbd5e1;
  border-radius: 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  box-sizing: border-box;
}
.mc-b3-why-trust-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  margin-bottom: 14px;
}
.mc-b3-check-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  font-size: 11px;
  color: #475569;
  line-height: 1.5;
}
.mc-b3-kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12px;
  color: #334155;
}
.mc-b3-trust-foot {
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  color: #64748b;
}
.mc-b3-trust-line {
  font-weight: 600;
  color: #334155;
  margin-bottom: 3px;
}
.mc-b3-terms-line a {
  color: #0076ff;
  text-decoration: none;
}
