/* ── Red Ferret Hidden Auth — Modal Styles ───────────────────────────────── */

#rf-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 10, 5, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rf-fade 0.2s ease;
}

@keyframes rf-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

#rf-modal {
  background: #fbf3e6;
  border-radius: 22px;
  padding: 38px 32px 32px;
  width: min(340px, 88vw);
  text-align: center;
  position: relative;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.52),
    0 0 0 1px rgba(169, 68, 36, 0.14);
  animation: rf-up 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

@keyframes rf-up {
  from { opacity: 0; transform: translateY(18px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* Close button */
#rf-x {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 28px;
  height: 28px;
  border: none;
  background: rgba(169, 68, 36, 0.10);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #8a7060;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
#rf-x:hover { background: rgba(169, 68, 36, 0.20); }

/* Paw icon */
#rf-paw {
  font-size: 42px;
  line-height: 1;
  margin-bottom: 14px;
}

/* Title */
#rf-title {
  font-size: 20px;
  font-weight: 700;
  color: #3d2718;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

/* Subtitle */
#rf-sub {
  font-size: 14px;
  color: #8a7060;
  line-height: 1.55;
  min-height: 44px;
  margin: 0 0 22px;
}

/* ── Spinner ──────────────────────────────────────────────────────────────── */
#rf-s-sending {
  margin-bottom: 8px;
}

.rf-spin {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(169, 68, 36, 0.18);
  border-top-color: #a94424;
  border-radius: 50%;
  margin: 4px auto 12px;
  animation: rf-rotate 0.75s linear infinite;
}

@keyframes rf-rotate {
  to { transform: rotate(360deg); }
}

/* ── Code input ───────────────────────────────────────────────────────────── */
.rf-field-wrap {
  margin-bottom: 14px;
}

#rf-inp {
  width: 100%;
  padding: 13px 12px;
  border: 2px solid rgba(169, 68, 36, 0.22);
  border-radius: 13px;
  background: #fff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-align: center;
  color: #3d2718;
  outline: none;
  transition: border-color 0.15s;
  font-family: "SF Mono", "Consolas", "Courier New", monospace;
  box-sizing: border-box;
}

#rf-inp:focus {
  border-color: #a94424;
  box-shadow: 0 0 0 3px rgba(169, 68, 36, 0.12);
}

#rf-inp.rf-shake {
  animation: rf-shake 0.38s ease;
}

@keyframes rf-shake {
  0%, 100% { transform: translateX(0);  }
  20%       { transform: translateX(-9px); }
  40%       { transform: translateX(9px);  }
  60%       { transform: translateX(-5px); }
  80%       { transform: translateX(5px);  }
}

/* Verify button */
#rf-btn {
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 13px;
  background: linear-gradient(135deg, #a94424 0%, #7a2e14 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(169, 68, 36, 0.32);
  transition: opacity 0.15s, transform 0.1s;
}
#rf-btn:hover  { opacity: 0.90; }
#rf-btn:active { transform: scale(0.98); }

/* Error message */
#rf-err {
  font-size: 13px;
  color: #c83220;
  margin: 10px 0 0;
  display: none;
}

/* ── Success state ────────────────────────────────────────────────────────── */
.rf-tick {
  font-size: 48px;
  color: #a94424;
  margin: 4px 0 10px;
  animation: rf-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  line-height: 1;
}

@keyframes rf-pop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

#rf-ok-msg {
  font-size: 15px;
  color: #3d2718;
  font-weight: 500;
}
