.rv-auth-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
}

.rv-auth-root * {
  box-sizing: border-box;
}

.rv-auth-launcher {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 0 18px;
  box-shadow: 0 16px 48px rgba(17, 17, 17, 0.22);
}

.rv-auth-launcher:hover {
  background: #2a2a2a;
}

.rv-auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147482999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 17, 0.48);
  padding: 18px;
}

.rv-auth-backdrop.is-open {
  display: flex;
}

.rv-auth-modal {
  width: min(100%, 420px);
  max-height: min(720px, calc(100vh - 36px));
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 90px rgba(17, 17, 17, 0.34);
}

.rv-auth-panel {
  padding: 22px;
}

.rv-auth-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.rv-auth-title {
  margin: 0;
  color: #111111;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.rv-auth-subtitle {
  margin: 7px 0 0;
  color: #656565;
  font-size: 14px;
  line-height: 1.45;
}

.rv-auth-close {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #e4e4e4;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.rv-auth-tabs,
.rv-auth-segment {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 999px;
  background: #f0f0f0;
  padding: 4px;
}

.rv-auth-tabs {
  margin-bottom: 16px;
}

.rv-auth-tab,
.rv-auth-choice {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5f5f5f;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.rv-auth-tab.is-active,
.rv-auth-choice.is-active {
  background: #ffffff;
  color: #111111;
  box-shadow: 0 1px 8px rgba(17, 17, 17, 0.08);
}

.rv-auth-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.rv-auth-label {
  color: #333333;
  font-size: 13px;
  font-weight: 700;
}

.rv-auth-input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-size: 16px;
  padding: 0 13px;
}

.rv-auth-input:focus {
  border-color: #b70000;
  outline: 2px solid rgba(183, 0, 0, 0.16);
}

.rv-auth-code {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-align: center;
}

.rv-auth-action {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  margin-top: 18px;
  padding: 0 18px;
}

.rv-auth-action:hover {
  background: #2a2a2a;
}

.rv-auth-secondary {
  display: inline-flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  margin-top: 10px;
  padding: 0 16px;
}

.rv-auth-action:disabled,
.rv-auth-secondary:disabled {
  cursor: wait;
  opacity: 0.62;
}

.rv-auth-note {
  margin: 12px 0 0;
  color: #656565;
  font-size: 13px;
  line-height: 1.45;
}

.rv-auth-alert {
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
  margin-top: 14px;
  padding: 11px 12px;
}

.rv-auth-alert.is-error {
  background: #fff1f1;
  color: #9f0000;
}

.rv-auth-alert.is-info {
  background: #f4f1ea;
  color: #333333;
}

.rv-auth-profile {
  display: grid;
  gap: 12px;
}

.rv-auth-profile-row {
  border-radius: 8px;
  background: #f6f6f6;
  padding: 12px;
}

.rv-auth-profile-label {
  color: #707070;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.rv-auth-profile-value {
  margin-top: 4px;
  color: #111111;
  font-size: 16px;
  font-weight: 700;
  word-break: break-word;
}

@media (max-width: 640px) {
  .rv-auth-root {
    right: 12px;
    bottom: 12px;
  }

  .rv-auth-launcher {
    min-height: 42px;
    padding: 0 15px;
  }

  .rv-auth-panel {
    padding: 18px;
  }
}
